public GetTeamStatisticsByGameId( IMapper mapper, IQueryDbContext sqlCommand) { _mapper = mapper; _sqlCommand = sqlCommand; }
public GetLeaguesByPlayer( IMapper mapper, IQueryDbContext sqlCommand) { _mapper = mapper; _sqlCommand = sqlCommand; }
private Task SyncAmenityAsync(IQueryDbContext queryDb, Domain.Entities.Amenity dbAmenity, CancellationToken stoppingToken) { #pragma warning disable CS0251 // Indexing an array with a negative index (Justification: Element at negative index translates to $ - has special meaning to MongoDB.Driver) var filter = Builders <ApartmentModel> .Filter.ElemMatch(a => a.Amenities, amenity => amenity.Id == dbAmenity.Id); var update = Builders <ApartmentModel> .Update.Set(a => a.Amenities[-1].Name, dbAmenity.Name); if (dbAmenity.IsDeleted) { update = Builders <ApartmentModel> .Update.PullFilter(a => a.Amenities, amenity => amenity.Id == dbAmenity.Id); } return(queryDb.Apartments.UpdateManyAsync(filter, update)); #pragma warning restore CS0251 }
private Task SyncApartmentAsync(IQueryDbContext queryDb, Domain.Entities.Apartment dbApartment, CancellationToken stoppingToken) { var filter = Builders <ApartmentModel> .Filter.Eq(u => u.Id, dbApartment.Id); if (dbApartment.IsDeleted) { return(queryDb.Apartments.DeleteOneAsync(filter, stoppingToken)); } var replacement = MapToQueryModel(dbApartment); var options = new ReplaceOptions() { IsUpsert = true }; return(queryDb.Apartments.ReplaceOneAsync(filter, replacement, options, stoppingToken)); }
public CustomerDetailsHandler(IQueryDbContext db, ILogger <CustomerDetailsHandler> logger) { _db = db; _logger = logger; }
public GetAllUsersQueryHandler(IQueryDbContext context) { this.context = context; }
public WorkoutTemplateQueryHandler(IQueryDbContext dbContext) { _dbContext = dbContext; }
public GetAllApartmentsQueryHandler(IQueryDbContext context) { this.context = context; }
public GetUserByUsernameQueryHandler(IQueryDbContext context) { this.context = context; }
public AccountEventsHandler(IQueryDbContext db, ILogger <AccountEventsHandler> logger) { _db = db; _logger = logger; }
public GetHostQueryHandler(IQueryDbContext context) { this.context = context; }
public GetAllGuestsQueryHandler(IQueryDbContext context) { this.context = context; }
public CustomerByIdHandler(IQueryDbContext db) { _db = db; }
public CustomersArchiveHandler(IQueryDbContext db, ILogger <CustomersArchiveHandler> logger) { _db = db; _logger = logger; }
public AccountByIdHandler(IQueryDbContext db) { _db = db; }
public GetAllReservationsQueryHandler(IQueryDbContext context) { this.context = context; }
public CustomersArchiveHandler(IQueryDbContext db) { _db = db; }
public ExerciseQueryHandler(IQueryDbContext dbContext) { _dbContext = dbContext; }