public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.SpotPlacement>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(Guid uid) { var entity = _dbContext.Find <Entities.Tenant.Clash>(uid); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Query <CampaignSettingsEntity>() .FirstOrDefault(cs => cs.Id == id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { if (_scheduleCache.TryGetValue(id, out var entity)) { _ = _scheduleCache.Remove(entity.Id); _dbContext.Remove(entity); } else { entity = _dbContext.Find <ScheduleEntity>(id); if (entity != null) { _dbContext.Remove(entity); } } }
public void Remove(Guid id) { var entity = _dbContext.Find <Entities.Tenant.Universe>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.Demographic>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <SqlAutoBookTaskReports.AutoBookTaskReport>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.DeliveryCappingGroup>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.LengthFactor>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(int id) { var entity = _dbContext.Find <ClashExceptionEntity>(id); if (!(entity is null)) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.BRS.BRSConfigurationTemplate>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(int id) { var entity = _dbContext.Find <Entities.Tenant.IndexType>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <ScenarioCampaignFailureEntity>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <BookingPositionGroupEntity>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(Guid id) { var entity = _dbContext.Find <BreakEntity>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(Guid id) { var entity = _dbContext.Find <Entities.Tenant.SalesAreas.SalesArea>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.FlexibilityLevel>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <SqlPipelineEvents.PipelineAuditEvent>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <Entities.Tenant.AutopilotRule>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(int id) { var entity = _dbContext.Find <FacilityEntity>(id); if (entity != null) { _dbContext.Remove(entity); } }
public void DeleteByKey(MetaDataKeys key) { var metadataCategory = _dbContext.Query <MetadataCategory>() .FirstOrDefault(x => x.Name == key.ToString()); if (metadataCategory != null) { _dbContext.Remove(metadataCategory); } }
public void DeleteByID(int id) { var item = _dbContext.Query <MSTeamsAuditEventSettingsEntity>() .FirstOrDefault(x => x.EventTypeId == id); if (item != null) { _dbContext.Remove(item); } }
public void Delete(int id) { var entity = _dbContext.Query <Entities.Tenant.ProgrammeClassification>() .FirstOrDefault(e => e.Uid == id); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(Guid uid) { var entity = _dbContext.Query <Entities.Tenant.Spot>() .FirstOrDefault(e => e.Uid == uid); if (entity != null) { _dbContext.Remove(entity); } }
public async Task Delete(Guid id) { var entity = await _dbContext.FindAsync <Entities.Tenant.LibrarySalesAreaPassPriority>(id) .ConfigureAwait(false); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(Guid id) { var entity = _dbContext.Query <ScenarioResultEntity>() .FirstOrDefault(x => x.ScenarioId == id); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(Guid scenarioId) { var entity = _dbContext.Query <Entities.Tenant.Failures.Failure>() .FirstOrDefault(e => e.ScenarioId == scenarioId); if (entity != null) { _dbContext.Remove(entity); } }
public void Delete(string externalReferenceId) { var entity = _dbContext.Query <SponsorshipEntity>() .FirstOrDefault(x => x.ExternalReferenceId == externalReferenceId); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(Guid id) { var entity = _dbContext.Query <Entities.Tenant.Runs.Run>() .Include(e => e.Scenarios) .FirstOrDefault(e => e.Id == id); if (entity != null) { _dbContext.Remove(entity); } }
public void Remove(int id, out bool isDeleted) { isDeleted = false; var entity = _dbContext.Find <Entities.Tenant.ClearanceCode>(id); if (entity != null) { _dbContext.Remove(entity); isDeleted = true; } }