SubSonic error: db.tables with a ~ in the name result in a "Character is not valid" error

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2009-05-26T11:38:37Z Indexed on 2010/03/21 8:01 UTC
Read the original article Hit count: 321

Filed under:
|

I renamed a database table and added a ~ character to the table name (my way of notifying it is a backup of something). After generating the SubSonic files, my Visual Studio gives a "Character not valid" error on file "AllStructs.vb"

When looking into this file the following line of code was generated; Public Shared ReadOnly DbTable1~old As String = "dbtable1~old".

I assume this character has to be filtered out of the db.table names when generating the SubSonic names?

© Stack Overflow or respective owner

Related posts about subsonic

Related posts about structs