Two classes mapping the same table with the Entity Framework

Posted on

Question :

I’m trying to make entity map two classes to the same table this is possible?


My identity is decoupled (Eduardo Pires’ tuto) from my domain and from the presentation layer on the domain layer I have a usuario class that I would like to represent the AspNetUsers table, but when I refer to class% I have the following error:



I’ve circled anyway, but I was not successful, can anyone give a light?


Answer :

If you are using Identity you should not use DbSet<Usuarios>

but db.Users .


Leave a Reply

Your email address will not be published. Required fields are marked *