WIP dependency Injection

This commit is contained in:
HuskyTeufel
2021-09-13 15:37:23 +02:00
parent 70fcb1711d
commit 12652b3fa3
96 changed files with 4836 additions and 505 deletions

View File

@@ -10,10 +10,10 @@ namespace DaSaSo.EntityFramework
{
public class DaSaSoDbContextFactory : IDesignTimeDbContextFactory<DaSaSoDbContext>
{
public DaSaSoDbContext CreateDbContext(string[] args = null)
public DaSaSoDbContext CreateDbContext(string[]? args = null)
{
var options = new DbContextOptionsBuilder<DaSaSoDbContext>();
options.UseNpgsql("Host = 192.168.122.1; Database = dasaso; Username = kansan; Password = kansan");
options.UseNpgsql("Host = localhost; Database = dasaso; Username = kansan; Password = kansan");
return new DaSaSoDbContext(options.Options);
}
}