I've got a Users table and the HashedPassword column is of the binary(16) type. It's used to store an MD5 hash. To generate the hash I created a couple of stored procedures: CreateUser, EditUser and LoginUser. They have a parameter that accepts a password in plaintext, convert it to the MD5 hash and store/lookup the hash in the table.
The problem is how do I fit this in with the entity framework? I tried creating an extra 'password' field in the User entity and then I would connect that field with the stored procedures but I get an error saying that this new Password field is not connected to a column in the Users table.
I just starting working with Entity Framework so I'm probably missing something obvious. Maybe I should keep the hash generation code in .net instead of the database.