public DbContextHelper AddSupport(DbContextSetupAction setupAction) { setupAction.DataProvider = AutoFixProvider(setupAction.DataProvider); SetupActions[setupAction.DataProvider] = setupAction; return(this); }
public static DbContextHelper AddSupportSqlServer(this DbContextHelper helper, Action <DbContextOptionsBuilder, string> setupAction = null) { setupAction ??= (builder, connString) => { builder.UseSqlServer(connString); }; helper.AddSupport(DbContextSetupAction.Create("SqlServer", setupAction)); return(helper); }