如何使用身份在 MVC 5 中自定义用户 table?
How to custom user table in MVC 5 using identity?
我想在 MVC 5 中通过自定义使用身份技术 table,但我不知道该怎么做。例如,我的[用户] table 是
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
您需要为您的模型使用代码优先迁移并使用包控制台命令更新它
更新数据库
.
我想在 MVC 5 中通过自定义使用身份技术 table,但我不知道该怎么做。例如,我的[用户] table 是
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
您需要为您的模型使用代码优先迁移并使用包控制台命令更新它
更新数据库
.