How can I hide a database column in the entity model? -


I am using unit framework 4 and have a question:

I have a password column My database that wants to use custom SQL, so I do not want to know the model about anything.

I tried to remove the property in the mapping description window, but then I got a compilation error:

Error 3023: Problem in mapping pieces starting from line 1660 : Column user The user name should be mapped in the table: it does not have any default values ​​and it is not empty.

So, the faucet column and model were updated in the database I created. I get this error now:

Error 3004: Problem in mapping pieces starting with line 1660: No mapping specified for properties User.Password, User.Salt In Set Users Key There will be no single round-trip unit (PK) with: Unit Type [UserDirectoryModel.User]

Any ideas please?

Thank you, Nick

One way to fix this is to Users can create a view of the table that does not include the password column. Then use the scene in your model instead of the table.


Comments