小编Rup*_*pak的帖子

WslRegisterDistribution 失败,错误:0xffffffff

无法在 WSL 2 中安装 Ubuntu 20.04 LTS。我已经为 WSl 启用了所有必需的东西。它导致以下错误。 错误信息

docker windows-subsystem-for-linux wsl-2

3
推荐指数
2
解决办法
2702
查看次数

如何在 ASP.NET Core 3.1 中的 AspnetUser 中添加列?

我创建了一个具有以下属性的应用程序用户类:

 public class ApplicationUser:IdentityUser
 {
    public string RandomPassword { get; set; }
 }
Run Code Online (Sandbox Code Playgroud)

我已将启动更新为:

services.AddIdentity<ApplicationUser, IdentityRole>(options => options.SignIn.RequireConfirmedAccount = true)
            .AddEntityFrameworkStores<ApplicationDbContext>().AddDefaultTokenProviders();
Run Code Online (Sandbox Code Playgroud)

但我的迁移为空。我希望 RandomPassword 作为 AspNetUser 表的列。

c# asp.net-mvc asp.net-identity asp.net-core asp.net-core-3.1

0
推荐指数
1
解决办法
1600
查看次数