fixe l'execution (apparemment)

This commit is contained in:
Paul Schneider 2018-03-26 21:31:20 +02:00
commit 21d5954bbf
6 changed files with 32 additions and 20 deletions

View file

@ -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;
}
}

View file

@ -65,10 +65,8 @@ namespace Yavsc.Models
et.FindProperty("DateCreated").IsReadOnlyAfterSave = true;
}
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseNpgsql(DbHelpers.ConnectionString);
}