Example #1
0
 /// <summary>
 /// Bad solution, but have no idea yet, how to register current provider using DbContextOptionsBuilder.
 /// </summary>
 /// <param name="builder"></param>
 public static void RememberActiveDbProvider(this DbContextOptionsBuilder builder)
 {
     _activeProvider = builder.GetActiveDbProvider();
 }