Sewerpoints und Objektnummern hinzugefügt
This commit is contained in:
@@ -8,10 +8,12 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.EntityFramework
|
||||
{
|
||||
public class DaSaSoDbContextFactory
|
||||
public class DaSaSoDbContextFactory : IDesignTimeDbContextFactory<DaSaSoDbContext>
|
||||
{
|
||||
private readonly Action<DbContextOptionsBuilder> _configureDbContext;
|
||||
|
||||
public DaSaSoDbContextFactory() { }
|
||||
|
||||
public DaSaSoDbContextFactory(Action<DbContextOptionsBuilder> configureDbContext)
|
||||
{
|
||||
_configureDbContext = configureDbContext;
|
||||
@@ -27,14 +29,22 @@ namespace DaSaSo.EntityFramework
|
||||
//DaSaSoDbContext result = new DaSaSoDbContext(options.Options);
|
||||
return new DaSaSoDbContext(options.Options);
|
||||
}
|
||||
/*
|
||||
public DaSaSoDbContext CreateDbContext(string[]? args = null)
|
||||
|
||||
public DaSaSoDbContext CreateDbContext(string[] args)
|
||||
{
|
||||
var options = new DbContextOptionsBuilder<DaSaSoDbContext>();
|
||||
options.UseNpgsql("Host = localhost; Database = dasaso; Username = kansan; Password = kansan");
|
||||
DaSaSoDbContext result = new DaSaSoDbContext(options.Options);
|
||||
return result;
|
||||
}
|
||||
*/
|
||||
/*
|
||||
public DaSaSoDbContext CreateDbContext(string[]? args = null)
|
||||
{
|
||||
var options = new DbContextOptionsBuilder<DaSaSoDbContext>();
|
||||
options.UseNpgsql("Host = localhost; Database = dasaso; Username = kansan; Password = kansan");
|
||||
DaSaSoDbContext result = new DaSaSoDbContext(options.Options);
|
||||
return result;
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user