我在新建ASP.NET Web应用程序后使用Identity会自动新建AspNet开头的表格,
现在我不想用自动生成的表格,用自己新建的表(字段一样)。应该怎么做?
重载OnModelCreating
参考http://stackoverflow.com/questions/19932993/create-asp-net-identity-tables-using-sql-script
如果字段一样,那你就改一下表名就行了. 添加一个类,然后其他用到identityuser的地方,换成 applicationuser
例如你的用户数据表
<table("你的表名")> Public Class ApplicationUser Inherits IdentityUser End Class
MVC 深入研究 博客:http://www.cnblogs.com/DoduNet/ MvcMovieStore 示例网站:MVC 影视 http://MvcMovie.cn/