It should be possible to use the identity system with POCO and Database First, but you’ll have to make a couple of tweaks:
- Update the .tt-file for POCO generation to make the entity classes
partial
. That will make it possible for you to supply additional implementation in a separate file. - Make a partial implementation of the
User
class in another file
partial User : IUser
{
}
That will make the User
class implement the right interface, without touching the actual generated files (editing generated files is always a bad idea).