Wednesday, November 18, 2009

edmx file problem with views

If we add new views to the existing edmx file, the file ".Designer.cs" is updated with the default primary key entries. but the ".edmx" file has the manually updated values. Because of this conflict, it will show compilation errors during building.
To avoid this problem we have to make changes to the ".Designer.cs" file. and it should be in-sync with the edmx file. make sure "Nullable" attribute of the column should have "false" as the value.

No comments:

Post a Comment