Sunday, November 7, 2010

Build Errors With SubSonic

When programming in C# (MS or Mono, it doesn't matter), and the need for an ORM framework arise, I turn to SubSonic. I enjoy using this framework very much, as it is fast and intuitive, and free (as in speech).

So if you're like me, and you use SubSonic for your model layer, here's an advice: don't name any of your database columns/tables with C# keywords. For example: if you have a DB column named "private", you're gonna have problems.

When building a SubSonic project that doesn't follow the above advice, one would probably get tons of "Expected class, delegate, enum, interface, or struct" in Structs.cs. Don't say I didn't warn you.

No comments:

Post a Comment