internal static async Task CreateTables(SqlContextAccess sqlContext) { try { string pathSql = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Scripts", "CreationTables.txt"); await sqlContext.CreateTables(pathSql); } catch (Exception ex) { Log.Error(ex, "Erreur sur la création de la base de donnée."); } }
public DataService(SqlContextAccess sqlContext) { _sqlContext = sqlContext; }