Beispiel #1
0
 public static void UseMySQL(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <MySqlDbContextOptionsBuilder> mySQLOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseMySQL(mySQLOptionsAction);
     });
 }
Beispiel #2
0
 public static void UseOracle(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <OracleDbContextOptionsBuilder> oracleOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseOracle(oracleOptionsAction);
     });
 }
 public static void UsePostgreSql(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <NpgsqlDbContextOptionsBuilder> postgreSqlOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseNpgsql(postgreSqlOptionsAction);
     });
 }
 public static void UseFirebird(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <FbDbContextOptionsBuilder> fbOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseFirebird(fbOptionsAction);
     });
 }
 public static void UseSqlServer(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <SqlServerDbContextOptionsBuilder> sqlServerOptionsAction = null)
 {
     options.Configure(context =>
     {
         context.UseSqlServer(sqlServerOptionsAction);
     });
 }
 public static void UseOracle(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <OracleDbContextOptionsBuilder> oracleOptionsAction = null,
     bool useExistingConnectionIfAvailable = false)
 {
     options.Configure(context =>
     {
         context.UseOracle(oracleOptionsAction, useExistingConnectionIfAvailable);
     });
 }
 public static void UseSqlite <TDbContext>(
     [NotNull] this AbpDbContextOptions options,
     [CanBeNull] Action <SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)
     where TDbContext : AbpDbContext <TDbContext>
 {
     options.Configure <TDbContext>(context =>
     {
         context.UseSqlite(sqliteOptionsAction);
     });
 }