我正在学习 C# 和 dotnet core,我目前正在研究模板
dotnet new webapp --auth Individual -o WebApp1
但是,它在幕后为我做了很多我不明白的事情。
我正在翻阅代码以查找如何创建和处理登录视图,但没有这样的运气。目前,我正在尝试在此模板中给定的数据库中添加一列,如下所示:
services.AddDbContext<ApplicationDbContext>(options =>
options.UseSqlite(
Configuration.GetConnectionString("DefaultConnection")));
services.AddDefaultIdentity<IdentityUser>()
.AddEntityFrameworkStores<ApplicationDbContext>();