How do I create the asp.net Identity tables manually with migrations?

后端 未结 2 1452
一整个雨季
一整个雨季 2020-12-30 13:07

I would like the asp.net Identity tables to exist in my database, and as well, have the corresponding respective code-first models generated before I actually run the mvc ap

2条回答
  •  一整个雨季
    2020-12-30 13:27

    Dylan Corriveau's answer works. However, if you are trying to login with these tables.. the userManager.FindAsync will cause a 500 error (Invalid UserId). the User_Id in AspNetUserClaims should be UserId.

提交回复
热议问题