我想在带有自定义表的 MVC 5 中使用身份技术,但我不知道该怎么做。例如,我的 [user] 表是
id primary key identity(1,1),
username nvarchar(50),
password nvarchar(50),
email varchar(100),
address nvarchar(100)
.... some information
我该怎么办?感谢您的帮助!
最佳答案
最后,我做到了!
如果其他人有像我这样的问题,请阅读一些链接
Trying to change table names in ASP.NET Identity 2.0 http://www.codeproject.com/Articles/796940/Understanding-Using-and-Customizing-ASP-NET-Identi
您需要为您的模型使用代码优先迁移并使用包控制台命令更新它
更新数据库
.
关于c# - 如何使用身份在 MVC 5 中自定义用户表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36323266/