Im using entity framework for a project and wishes it to behave in similiar way as my normal ado.net-project, where I never fetch the password hash from the database to avoid security leaks of secret information.
I´ve though of a couple of ideas
- one is to hide the field from partial class but I don't know if that is possible.
- Change the code generation template with an ugly if clause for that special case
Neither of those solutions stops the data from leaving the database I guess, just hides the fields with returning String.Empty or such. Is there any way to not enable that field at all but still have the possibility to add new users or change hash in a forgotten password feature.