public void InitializeDatabase(TDbContext dbContext) { dbContext.Database.EnsureCreated(); MigrationsManager.MigrateAllPendingChanges(dbContext); this._initializerConfiguration.Seed(dbContext); }
public DataOptionsController(MigrationsManager manager, IBookRepo bookRepo, ICategoryRepo categoryRepo, IPublisherRepo publisherRepo) { _manager = manager; _bookRepo = bookRepo; _categoryRepo = categoryRepo; _publisherRepo = publisherRepo; }
public MigrationsOptions(int booksCount, int categoriesCount, int publishersCount, MigrationsManager manager, string infoMessage) { BooksCount = booksCount; CategoriesCount = categoriesCount; PublishersCount = publishersCount; ContextNames = manager.ContextNames ?? Enumerable.Empty <string>(); AllMigrations = manager.AllMigrations ?? Enumerable.Empty <string>(); PendingMigrations = manager.PendingMigrations ?? Enumerable.Empty <string>(); AppliedMigrations = manager.AppliedMigrations ?? Enumerable.Empty <string>(); InfoMessage = infoMessage; }
public AdminController(UserManager <AppUser> usrMgr, IUserValidator <AppUser> userValid, IPasswordValidator <AppUser> passValid, IPasswordHasher <AppUser> passwordHash, RoleManager <IdentityRole> roleMgr, MigrationsManager mgr) { manager = mgr; userManager = usrMgr; userValidator = userValid; passwordValidator = passValid; passwordHasher = passwordHash; roleManager = roleMgr; }
public MigrationsManagerTests() { _schemas = new List <IMigrateSchema>(); _schemas.Add(new FakeSchemaMigrator() { SchemaName = "Test", Priority = 1 }); _schemas.Add(new FakeSchemaMigrator() { SchemaName = "Test1", Priority = 4 }); _schemas.Add(new FakeSchemaMigrator() { SchemaName = "Test3", Priority = 1 }); _manager = new MigrationsManager(_schemas, new FakeRunner()); }
public MigrationsController(MigrationsManager mgr) { manager = mgr; }
public DataOptionsRepo(TaskRepo taskRepo, CategoryRepo categoryRepo, MigrationsManager manager) { _taskRepo = taskRepo; _categoryRepo = categoryRepo; _manager = manager; }
// Use this for initialization void Start() { MigrationsManager.PerformMigrations(); InitializeMenu(); }
public MigrationsController(MigrationsManager manager) => this.manager = manager;
public MigrationsController(MigrationsManager migrationsManager) { _migrationsManager = migrationsManager; }