report placement, retire
This commit is contained in:
parent
1b04e2dfc3
commit
082f4b2f59
6 changed files with 984 additions and 29 deletions
|
|
@ -101,6 +101,11 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
var defaultConnection = builder.Configuration.GetConnectionString("DefaultConnection");
|
||||
builder.Services.AddDbContext<ApplicationDBContext>(options =>
|
||||
options.UseMySql(defaultConnection, ServerVersion.AutoDetect(defaultConnection)));
|
||||
// Register DisciplineDbContext
|
||||
var disciplineConnection = builder.Configuration.GetConnectionString("DisciplineConnection");
|
||||
builder.Services.AddDbContext<DisciplineDbContext>(options =>
|
||||
options.UseMySql(disciplineConnection, ServerVersion.AutoDetect(disciplineConnection)));
|
||||
|
||||
builder.Services.AddHealthChecks();
|
||||
// Add Hangfire services.
|
||||
builder.Services.AddHangfire(configuration => configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue