/// <summary> /// Uses my SQL. /// </summary> /// <param name="options">The options.</param> /// <param name="mySQLOptionsAction">My SQL options action.</param> public static void UseMySQL([NotNull] this EfCoreDbContextOptions options) { options.Configure(context => { context.UseMySQL(); }); }
/// <summary> /// Uses my SQL. /// </summary> /// <typeparam name="TDbContext">The type of the t database context.</typeparam> /// <param name="options">The options.</param> /// <param name="optionsAction">My SQL options action.</param> public static void UseMySQL <TDbContext>([NotNull] this EfCoreDbContextOptions options) where TDbContext : EfCoreDbContext <TDbContext> { options.Configure <TDbContext>(context => { context.UseMySQL(); }); }
/// <summary> /// Uses the SQL server. /// </summary> /// <param name="options">The options.</param> /// <param name="sqlServerOptionsAction">The SQL server options action.</param> public static void UseSqlServer( [NotNull] this EfCoreDbContextOptions options, [CanBeNull] Action <SqlServerDbContextOptionsBuilder> sqlServerOptionsAction = null) { options.Configure(context => { context.UseSqlServer(sqlServerOptionsAction); }); }