private static void Migrate(IUnitOfWork unitOfWork, TypiconDBContext dbContext, Action <DbContextOptionsBuilder> optionsBuilder, string folderPath) { ScheduleHandler sh = new ScheduleHandler("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\Programming\\Documentation\\TypiconOnline.Documentation\\Db\\ScheduleDB.mdb;"); var service = GetUserCreationService(optionsBuilder); TypiconMigration migration = new TypiconMigration(unitOfWork, dbContext, sh, service, folderPath); migration.Execute(); }
private static void Migrate(IUnitOfWork uof, TypiconDBContext dbContext, Action <DbContextOptionsBuilder, IConfiguration> optionsBuilder , string folderPath, IConfiguration config) { ScheduleHandler sh = new ScheduleHandler(config.GetConnectionString("Ole")); var service = GetUserCreationService(optionsBuilder, config); TypiconMigration migration = new TypiconMigration(uof, dbContext, sh, service, folderPath); migration.Execute(); }