I am building the project in which I made the Database tables through Sql server and then i scaffold the Database and after that Dbcontext created after scaffolding. Now I want to add Identity tables like Users, UserRole, Roles, Claim etc through code first approach. I remove the dbcontext that is inherit with IdentityDbContext<ApplicationUser, ApplicationRole, int>
public partial class ApplicationDbContext : IdentityDbContext<ApplicationUser, ApplicationRole, int>
After that i run the commands for Add Mgration it shows erorr.
If i am doing it with wrong process tell me the correct process to do it
I am building the project in which I made the Database tables through Sql server and then i scaffold the Database and after that Dbcontext created after scaffolding. Now I want to add Identity tables like Users, UserRole, Roles, Claim etc through code first approach. I remove the dbcontext that is inherit with IdentityDbContext<ApplicationUser, ApplicationRole, int>
After that i run the commands for Add Mgration it shows erorr.
If i am doing it with wrong process tell me the correct process to do it
Abdullah Khan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.