fix: GSS2.Core.DependencyInjectionHelper after database reforge

This commit is contained in:
2026-06-17 10:36:13 +03:00
parent 913805eb70
commit 668136d2c9
+3 -12
View File
@@ -108,20 +108,11 @@ public static class DependencyInjectionHelper
} }
); );
public static IServiceCollection AddAmineContentCalibrationContext(this IServiceCollection services, IConfigurationManager configuration) => services public static IServiceCollection AddAmineContentContext(this IServiceCollection services, IConfigurationManager configuration) => services
.AddDbContext<CalibrationContext>( .AddDbContext<Context>(
options => options =>
{ {
var databasePath = configuration.GetConnectionString("AmineContentCalibrationDatabasePath"); var databasePath = configuration.GetConnectionString("AmineContentDatabasePath");
options.UseSqlite($"Data Source={databasePath}");
},
ServiceLifetime.Singleton
);
public static IServiceCollection AddAmineContentResultsContext(this IServiceCollection services, IConfigurationManager configuration) => services
.AddDbContext<ResultsContext>(
options =>
{
var databasePath = configuration.GetConnectionString("AmineContentResultsDatabasePath");
options.UseSqlite($"Data Source={databasePath}"); options.UseSqlite($"Data Source={databasePath}");
}, },
ServiceLifetime.Singleton ServiceLifetime.Singleton