forked from amkovkov/GranuSightSoftware2
fix: GSS2.Core.DependencyInjectionHelper after database reforge
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user