【发布时间】:2020-01-14 10:10:42
【问题描述】:
我创建了一个具有以下属性的类应用程序用户:
public class ApplicationUser:IdentityUser
{
public string RandomPassword { get; set; }
}
我已将启动更新为:
services.AddIdentity<ApplicationUser, IdentityRole>(options => options.SignIn.RequireConfirmedAccount = true)
.AddEntityFrameworkStores<ApplicationDbContext>().AddDefaultTokenProviders();
但是我的迁移是空的。我希望 RandomPassword 作为 AspNetUser 表的列。
【问题讨论】:
标签: c# asp.net-mvc asp.net-core asp.net-identity asp.net-core-3.1