public ArticleCache() { _dbConnectionString = Dbms.getDbContextString(); _masterDBContext = new ProductionDomainContext(options: new DbContextOptionsBuilder <MasterDBContext>() .UseSqlServer(connectionString: _dbConnectionString) .Options); _masterDBContext.Database.EnsureCreated(); MasterDbInitializerTable.DbInitialize(context: _masterDBContext); }
public ArticleCheck() { _dbConnectionString = Dbms.getDbContextString().Replace("UnitTestDB", "TruckTest"); _masterDBContext = new ProductionDomainContext(options: new DbContextOptionsBuilder <MasterDBContext>() .UseSqlServer(connectionString: _dbConnectionString) .Options); _masterDBContext.Database.EnsureCreated(); MasterDBInitializerTruck.DbInitialize(context: _masterDBContext); }