This project is read-only.

Step 2: Fix Any Code Generation Issues

When I generate my code, I get an error. What do I do?

There are two common reason that generation or compilation of the generated code may fail. A property has the same name as the class it is contained in or a database column name is a reserved word in C#. This can be fixed by adding an Extended Property called NSFx_EntityPropertyName to the column in the database. The value for the extended property is what will be used for the property name.

Learn more about SQL extended properties

Related Advanced Topic:

Changing Class Names That Are Generated

Last edited Dec 31, 2007 at 3:38 PM by banderson, version 18


No comments yet.