Merge MyDbContext with IdentityDbContext

前端 未结 8 1865
天命终不由人
天命终不由人 2020-11-28 22:22

I have a MyDbContext in a separated Data Accass Layer class library project. And I have an ASP.NET MVC 5 project with a default IdentityDbContext. The two context use the sa

8条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 23:14

    I tried a simple way.. copy the connection string from your db and replace the connection string of DefaultConnection. Go ahead and create user, all the necessary tables are automatically created in your database.

    Hope that helps

提交回复
热议问题