public static void UseSqlServer(
     [NotNull] this PlusDbContextOptions options,
     [CanBeNull] Action <SqlServerDbContextOptionsBuilder> sqlServerOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseSqlServer(sqlServerOptionsAction);
     });
 }
Example #2
0
 public static void UseMySQL(
     [NotNull] this PlusDbContextOptions options,
     [CanBeNull] Action <MySqlDbContextOptionsBuilder> mySQLOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseMySQL(mySQLOptionsAction);
     });
 }
 public static void UseSqlite <TDbContext>(
     [NotNull] this PlusDbContextOptions options,
     [CanBeNull] Action <SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)
     where TDbContext : PlusDbContext <TDbContext>
 {
     options.Configure <TDbContext>(context =>
     {
         context.UseSqlite(sqliteOptionsAction);
     });
 }