Exemple #1
0
 public override DbContextOptionsBuilder AddOptions(DbContextOptionsBuilder builder)
 => base.AddOptions(builder.UseLazyLoadingProxies());
Exemple #2
0
 public void OnConfiguring(string tenantId, DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.UseInMemoryDatabase($"{tenantId}-InMemoryDatabase");
     optionsBuilder.UseLazyLoadingProxies();
 }
Exemple #3
0
 public void Configure(DbContextOptionsBuilder optionsBuilder)
 {
     optionsBuilder.UseInMemoryDatabase(Guid.NewGuid().ToString());
     optionsBuilder.UseLazyLoadingProxies();
 }
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 => optionsBuilder
 .UseLazyLoadingProxies()
 .UseInMemoryDatabase(Guid.NewGuid().ToString());