// CONSTRUCTORS public BinaryDbContext(DbContextOptions <BinaryDbContext> options, Interfaces.IDbInitializer dbInitializer) : base(options) { this.dbInitializer = dbInitializer; Database.Migrate(); }
// CONSTRUCTORS /// <summary> /// Initializes a new instance of <see cref="DataBaseContext"/> with given options /// </summary> /// <param name="options"> /// The option to be used by <see cref="DataBaseContext"/> /// </param> /// <param name="dbInitializer"> /// Data base initializer /// </param> public DataBaseContext(DbContextOptions <DataBaseContext> options, Interfaces.IDbInitializer dbInitializer) : base(options) { this.dbInitializer = dbInitializer; Database.EnsureCreated(); }
public ApplicationDbContext(DbContextOptions <ApplicationDbContext> options, Interfaces.IDbInitializer dbInitializer) : base(options) { _dbInitializer = dbInitializer; }