I am using Entity Framework 4 and ask a question:
I have a password column in my database that I want to manage using custom SQL. Therefore, I do not want the model to know about it.
I tried removing the property in the Mapping Details window, but then received a compilation error:
Error 3023: problem with displaying fragments starting from line 1660: User.Password column in the table. The user must be mapped: it has no default value and no null value.
So, I made the column null in the database and updated the model. Now I get this error:
Error 3004: a problem with displaying fragments starting from line 1660: no matching was set for the properties of User.Password, User.Salt in Set Users. An object with a key (PK) will not be rounded if: Entity is of type [UserDirectoryModel.User]
Any ideas please?
Thanks Nick
entity-framework entity-framework-4 edmx
Nicholas butler
source share