Merge branch 'feature-nxdev' of https://gitea.nxsir.cn/code/IM into feature-nxdev

This commit is contained in:
2025-10-30 14:44:00 +08:00
47 changed files with 1140 additions and 696 deletions
+3 -2
View File
@@ -17,11 +17,12 @@ namespace IM_API
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.Build();
string conStr = builder.Configuration.GetConnectionString("DefaultConnection")!;
builder.Services.AddDbContext<IMDbContext>(options =>
builder.Services.AddDbContext<ImContext>(options =>
{
options.UseMySql(conStr,ServerVersion.AutoDetect(conStr));
});
builder.Services.AddAllService(configuration);
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle