Migrating to Asp.Net Identity 2.0: new columns not being created in AspNetUsers table

前端 未结 7 1456
感情败类
感情败类 2020-12-29 13:28

I get the following error when I try to register a new user, using Identity 2.0 and the default MVC 5 application:

Invalid column name \'Email\'.
Invalid col         


        
相关标签:
7条回答
  • 2020-12-29 13:58

    The reason is you've upgraded to Microsoft.AspNet.Identity.EntityFramework 2.0.0.0 and that changes the user context.

    To fix either generate a new db (set a new connection string mdf file) or change the sql table.

    0 讨论(0)
提交回复
热议问题