public static void DefaultConfiguration(this DbContextOptionsBuilder optionsBuilder, IBaseContants baseContants)
 {
     optionsBuilder.DefaultConfiguration(
         Path.Combine(Directory.GetCurrentDirectory()),
         baseContants.AppSettingsJsonFileName,
         baseContants.ConnectionName);
 }
Exemple #2
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.DefaultConfiguration(new GeneratedValuesConstants());
 }
Exemple #3
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.DefaultConfiguration(new IncludeExcludeTypesConstants());
 }
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.DefaultConfiguration(new ConcurencyConstants());
 }