Ejemplo 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);
Ejemplo n.º 5
0
 private static IRelationalDatabaseCreator GetDatabaseCreator(SqlServerTestStore testStore)
 => CreateContextServices(testStore).GetRequiredService <IRelationalDatabaseCreator>();