Ohne Syncfusion
This commit is contained in:
@@ -27,7 +27,11 @@ namespace SewerStammGen.HostBuilders
|
||||
if (databaseToUse.Equals("default"))
|
||||
{
|
||||
connectionString = context.Configuration.GetConnectionString("default");
|
||||
configureDbContext = o => o.UseNpgsql(connectionString);
|
||||
configureDbContext = o =>
|
||||
{
|
||||
o.EnableSensitiveDataLogging();
|
||||
o.UseNpgsql(connectionString);
|
||||
};
|
||||
}
|
||||
else if (databaseToUse.Equals("sqlite"))
|
||||
{
|
||||
|
||||
@@ -72,11 +72,11 @@ namespace SewerStammGen.HostBuilders
|
||||
);
|
||||
});
|
||||
|
||||
services.AddSingleton<CreateViewModel<HaltungEditViewModel>>(services =>
|
||||
services.AddTransient<CreateViewModel<HaltungEditViewModel>>(services =>
|
||||
{
|
||||
return () => new HaltungEditViewModel(
|
||||
services.GetRequiredService<IHaltungDataService>(),
|
||||
services.GetRequiredService<ISchachtDataService>(),
|
||||
services.GetRequiredService<ISchachtService>(),
|
||||
services.GetRequiredService<IActualState>()
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user