Cannot insert the value NULL into column 'Discriminator' AspNetUsers Table

笑着哭i 提交于 2020-01-14 08:10:12

问题


After a code first migration, adding a user using the register fails with:

Cannot insert the value NULL into column 'Discriminator', table 'aspnet-BSF2013-20130918101120.dbo.AspNetUsers'; column does not allow nulls.

The create user code is the default code generated by the Project Template (Vs2013, MVC project with EF5)

Before a successful migration, the Registration code worked, so I'm guessing that membership has been altered by EF.

来源:https://stackoverflow.com/questions/18938514/cannot-insert-the-value-null-into-column-discriminator-aspnetusers-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!