Change ASP.NET Identity to use existing database

前端 未结 2 1741
攒了一身酷
攒了一身酷 2021-01-06 02:29

I\'m using ASP.NET MVC 5 with a Database-First workflow. I\'ve created the Identity tables (AspNetUsers, AspNetRoles etc.) in my existing database

2条回答
  •  不知归路
    2021-01-06 03:10

    I THINK this scenario is not supported by ASP.NET Identity as it needs a DbContext which extends IdentityDbContext (or similar).

    Why are you forcing Identity into your DB-First context?
    You can use a Code-First context for Identity alongside your other DB-First context without problems...

提交回复
热议问题