Add support for configuring DbModelOptions via DI

Introduce ConfigureDbModel methods to DependencyInjection for setting up DbModelOptions from code or configuration. Update required services tracking and add usage in Program.cs to enable structured DbModelOptions injection.
This commit is contained in:
2026-03-25 13:26:54 +01:00
parent a46cd08122
commit 37ba85d681
2 changed files with 28 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ try
options.LuckyPennySoftwareLicenseKey = builder.Configuration["LuckyPennySoftwareLicenseKey"];
options.ConfigureRecActions(config.GetSection("RecAction"));
options.ConfigureSqlException(config.GetSection("SqlException"));
options.ConfigureDbModel(config.GetSection("DbModel"));
});
builder.Services.AddRecInfrastructure(options =>