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; }
public ReservaRepository(DeadlockContext ctx) { Context = ctx; }
public LaboratorioRepository(DeadlockContext ctx) { Context = ctx; }
public UsuarioRepository(IOptions <AppSettings> settings, DeadlockContext ctx) { Settings = settings.Value; Context = ctx; }