Two classes mapping the same table with the Entity Framework

4

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

Scenario:

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:

  

usuario

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

    
asked by anonymous 17.01.2017 / 00:13

1 answer

1

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

but db.Users .

    
19.05.2017 / 20:05