Seed database for Identity 2

前端 未结 4 1692
不知归路
不知归路 2020-12-08 11:20

I came across a problem for seeding the database with Identity v2. I separated out the IdentityModel from the MVC5 project to my Data Access Layer where I setup EF Migration

4条回答
  •  误落风尘
    2020-12-08 12:00

    Hi Under the Startup class please make sure that you have call app.CreatePerOwinContext(ApplicationDbContext.Create); app.CreatePerOwinContextApplicationUserManager.Create); app.CreatePerOwinContextApplicationSignInManager.Create);

    app.CreatePerOwinContext(ApplicationRoleManager.Create);

提交回复
热议问题