From 668136d2c952feab537f210ab747e22cdc86bd7c Mon Sep 17 00:00:00 2001 From: Alek-ban Date: Wed, 17 Jun 2026 10:36:13 +0300 Subject: [PATCH] fix: GSS2.Core.DependencyInjectionHelper after database reforge --- GSS2.Core/DependencyInjectionHelper.cs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/GSS2.Core/DependencyInjectionHelper.cs b/GSS2.Core/DependencyInjectionHelper.cs index cf6c093..12c9a90 100644 --- a/GSS2.Core/DependencyInjectionHelper.cs +++ b/GSS2.Core/DependencyInjectionHelper.cs @@ -108,20 +108,11 @@ public static class DependencyInjectionHelper } ); - public static IServiceCollection AddAmineContentCalibrationContext(this IServiceCollection services, IConfigurationManager configuration) => services - .AddDbContext( + public static IServiceCollection AddAmineContentContext(this IServiceCollection services, IConfigurationManager configuration) => services + .AddDbContext( options => { - var databasePath = configuration.GetConnectionString("AmineContentCalibrationDatabasePath"); - options.UseSqlite($"Data Source={databasePath}"); - }, - ServiceLifetime.Singleton - ); - public static IServiceCollection AddAmineContentResultsContext(this IServiceCollection services, IConfigurationManager configuration) => services - .AddDbContext( - options => - { - var databasePath = configuration.GetConnectionString("AmineContentResultsDatabasePath"); + var databasePath = configuration.GetConnectionString("AmineContentDatabasePath"); options.UseSqlite($"Data Source={databasePath}"); }, ServiceLifetime.Singleton