Esempio n. 1
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 => optionsBuilder
 .UseInternalServiceProvider(_serviceProvider)
 .UseSqlServer(SqlServerTestStore.CreateConnectionString(_databaseName));
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.UseSqlServer(SqlServerTestStore.CreateConnectionString(DatabaseName));
 }
 public SqlServerTriggersTest(SqlServerTriggersFixture fixture)
 {
     _fixture   = fixture;
     _testStore = _fixture.GetTestStore();
 }
 public TriggersContext CreateContext(SqlServerTestStore testStore)
 => new TriggersContext(new DbContextOptionsBuilder()
                        .EnableSensitiveDataLogging()
                        .UseInternalServiceProvider(_serviceProvider)
                        .UseSqlServer(testStore.Connection).Options);
Esempio n. 5
0
 private static IRelationalDatabaseCreator GetDatabaseCreator(SqlServerTestStore testStore)
 => CreateContextServices(testStore).GetRequiredService <IRelationalDatabaseCreator>();