Relative Content

Tag Archive for asp.netasp.net-mvcasp.net-coreasp.net-web-apiasp.net-identity

How to add identity in Asp.Net core using Dbfirst approach

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