.net 6 EF数据库访问设置
builder.Services.AddDbContext<xdzs_hryContext>(o => o.UseSqlServer(builder.Configuration.GetConnectionString("TodoDataBase")));
// 在 Program.cs 里面添加
builder.Services.AddDbContext<xdzs_hryContext>(o => o.UseSqlServer(builder.Configuration.GetConnectionString("TodoDataBase")));
// 在 Program.cs 里面添加