Adding strongly typed options

This commit is contained in:
Zoe Roux
2021-05-20 00:22:35 +02:00
parent fcd419993a
commit dcfb1e538c
30 changed files with 302 additions and 136 deletions
-4
View File
@@ -66,10 +66,6 @@ namespace Kyoo.Postgresql
if (_environment.IsDevelopment())
x.EnableDetailedErrors().EnableSensitiveDataLogging();
});
// services.AddScoped<DatabaseContext>(_ => new PostgresContext(
// _configuration.GetDatabaseConnection("postgres"),
// _environment.IsDevelopment()));
// services.AddScoped<DbContext>(x => x.GetRequiredService<PostgresContext>());
}
/// <inheritdoc />