asp.net-mvcasp.net-identityado.net-entity-data-modelentity-framework-designer

How to inherit from IdentityUser in entity framework designer


I have an asp.net mvc project that uses asp.net Identity to authenticate users. The database has been designed in entity framework designer.

There is a table named "Farmers" and I want to allow each farmer to login to the application. As I know in order to achieve this, the farmer must inherit from IdentityUser, but how can I do this in entity framework designer?


Solution

  • After a lot of hours of research I figured out that inherit from ApplicationUser or IdentityUser is not possible using the Entity Framework Designer.

    My solution is to create a Code First Model from the existing database and then inherit from ApplicationUser.