public static void UseMySQL <TDbContext>([NotNull] this DbContextOptions options, [CanBeNull] Action <MySQLDbContextOptionsBuilder> mySQLOptionsAction = null) where TDbContext : DataDbContext <TDbContext> { options.Configure <TDbContext>(context => { context.UseMySQL(mySQLOptionsAction); }); }
public static void UseMySQL([NotNull] this DbContextOptions options, [CanBeNull] Action <MySQLDbContextOptionsBuilder> mySQLOptionsAction = null) { options.Configure(context => { context.UseMySQL(mySQLOptionsAction); }); }
public static void UseSqlServer <TDbContext>([NotNull] this DbContextOptions options, [CanBeNull] Action <SqlServerDbContextOptionsBuilder> sqlServerOptionsAction = null) where TDbContext : DataDbContext <TDbContext> { options.Configure <TDbContext>(context => { context.UseSqlServer(sqlServerOptionsAction); }); }
public static void UseSqlServer([NotNull] this DbContextOptions options, [CanBeNull] Action <SqlServerDbContextOptionsBuilder> sqlServerOptionsAction = null) { options.Configure(context => { context.UseSqlServer(sqlServerOptionsAction); }); }
public static void UseNpgsql <TDbContext>([NotNull] this DbContextOptions options, [CanBeNull] Action <NpgsqlDbContextOptionsBuilder> postgreSqlOptionsAction = null) where TDbContext : DataDbContext <TDbContext> { options.Configure <TDbContext>(context => { context.UseNpgsql(postgreSqlOptionsAction); }); }
public static void UseNpgsql([NotNull] this DbContextOptions options, [CanBeNull] Action <NpgsqlDbContextOptionsBuilder> postgreSqlOptionsAction = null) { options.Configure(context => { context.UseNpgsql(postgreSqlOptionsAction); }); }