fixe l'execution (apparemment)
This commit is contained in:
parent
cb6309abdb
commit
21d5954bbf
6 changed files with 32 additions and 20 deletions
|
|
@ -2,10 +2,8 @@ namespace Yavsc.Server.Helpers
|
|||
{
|
||||
public static class DbHelpers
|
||||
{
|
||||
static string _connectionString = null;
|
||||
public static string ConnectionString {
|
||||
get { return _connectionString = null; }
|
||||
set { _connectionString = value; }
|
||||
}
|
||||
// FIXME BUG [fr] DependencyInjection Pourquoi ce champ ne pourrait pas devenir une propriété ?
|
||||
// : casse à l'execution d'un controlleur, se plaignant d'une valeur nule
|
||||
public static string ConnectionString = null;
|
||||
}
|
||||
}
|
||||
|
|
@ -65,10 +65,8 @@ namespace Yavsc.Models
|
|||
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
|
||||
optionsBuilder.UseNpgsql(DbHelpers.ConnectionString);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue