Exemple #1
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <Entities.Tenant.SpotPlacement>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #2
0
        public void Delete(Guid uid)
        {
            var entity = _dbContext.Find <Entities.Tenant.Clash>(uid);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #3
0
        public void Delete(int id)
        {
            var entity = _dbContext.Query <CampaignSettingsEntity>()
                         .FirstOrDefault(cs => cs.Id == id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #4
0
 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);
         }
     }
 }
Exemple #5
0
        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);
            }
        }
Exemple #7
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <SqlAutoBookTaskReports.AutoBookTaskReport>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #8
0
        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);
            }
        }
Exemple #10
0
        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);
            }
        }
Exemple #12
0
        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);
            }
        }
Exemple #14
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <BookingPositionGroupEntity>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #15
0
        public void Delete(Guid id)
        {
            var entity = _dbContext.Find <BreakEntity>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #16
0
        public void Remove(Guid id)
        {
            var entity = _dbContext.Find <Entities.Tenant.SalesAreas.SalesArea>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #17
0
        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);
            }
        }
Exemple #20
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <FacilityEntity>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #21
0
        public void DeleteByKey(MetaDataKeys key)
        {
            var metadataCategory = _dbContext.Query <MetadataCategory>()
                                   .FirstOrDefault(x => x.Name == key.ToString());

            if (metadataCategory != null)
            {
                _dbContext.Remove(metadataCategory);
            }
        }
Exemple #22
0
        public void DeleteByID(int id)
        {
            var item = _dbContext.Query <MSTeamsAuditEventSettingsEntity>()
                       .FirstOrDefault(x => x.EventTypeId == id);

            if (item != null)
            {
                _dbContext.Remove(item);
            }
        }
Exemple #23
0
        public void Delete(int id)
        {
            var entity = _dbContext.Query <Entities.Tenant.ProgrammeClassification>()
                         .FirstOrDefault(e => e.Uid == id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #24
0
        public void Remove(Guid uid)
        {
            var entity = _dbContext.Query <Entities.Tenant.Spot>()
                         .FirstOrDefault(e => e.Uid == uid);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Exemple #25
0
        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);
            }
        }
Exemple #27
0
        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);
            }
        }
Exemple #29
0
        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);
            }
        }
Exemple #30
0
        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;
            }
        }