public async Task Multiple_optional_navs_should_not_deadlock_bug_5481()
        {
            using (var testStore = SqlServerTestStore.CreateScratch())
            {
                using (var context = new DeadlockContext(testStore.ConnectionString))
                {
                    context.Database.EnsureCreated();
                    context.EnsureSeeded();

                    var count
                        = await context.Persons
                          .Where(p => (p.AddressOne != null && p.AddressOne.Street.Contains("Low Street")) ||
                                 (p.AddressTwo != null && p.AddressTwo.Street.Contains("Low Street")))
                          .CountAsync();

                    Assert.Equal(0, count);
                }
            }
        }
 public EstadoCompraRepository(DeadlockContext ctx)
 {
     Context = ctx;
 }
 public ProductoRepository(DeadlockContext ctx)
 {
     Context = ctx;
 }
Beispiel #4
0
 public ReservaRepository(DeadlockContext ctx)
 {
     Context = ctx;
 }
Beispiel #5
0
 public LaboratorioRepository(DeadlockContext ctx)
 {
     Context = ctx;
 }
Beispiel #6
0
 public UsuarioRepository(IOptions <AppSettings> settings, DeadlockContext ctx)
 {
     Settings = settings.Value;
     Context  = ctx;
 }