แก้สมัครสอบ

This commit is contained in:
kittapath 2025-01-05 21:59:15 +07:00
parent afc0cd830c
commit 07903d3b67
30 changed files with 3471 additions and 771 deletions

View file

@ -65,6 +65,9 @@ builder.Host.UseSerilog();
var examConnection = builder.Configuration.GetConnectionString("ExamConnection");
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseMySql(examConnection, ServerVersion.AutoDetect(examConnection)));
var orgConnection = builder.Configuration.GetConnectionString("OrgConnection");
builder.Services.AddDbContext<OrgDbContext>(options =>
options.UseMySql(orgConnection, ServerVersion.AutoDetect(orgConnection)));
var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection");
builder.Services.AddDbContext<MetadataDbContext>(options =>
options.UseMySql(defaultConnection, ServerVersion.AutoDetect(defaultConnection)));