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

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

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

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 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);
         }
     }
 }
Esempio n. 5
0
        public void Remove(Guid id)
        {
            var entity = _dbContext.Find <Entities.Tenant.Universe>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 6
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <Entities.Tenant.Demographic>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 7
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <SqlAutoBookTaskReports.AutoBookTaskReport>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 8
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <Entities.Tenant.DeliveryCappingGroup>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 9
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <Entities.Tenant.LengthFactor>(id);

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

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

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

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 19
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <Entities.Tenant.AutopilotRule>(id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 20
0
        public void Delete(int id)
        {
            var entity = _dbContext.Find <FacilityEntity>(id);

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

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

            if (item != null)
            {
                _dbContext.Remove(item);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 26
0
        public void Remove(Guid id)
        {
            var entity = _dbContext.Query <ScenarioResultEntity>()
                         .FirstOrDefault(x => x.ScenarioId == id);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 28
0
        public void Delete(string externalReferenceId)
        {
            var entity = _dbContext.Query <SponsorshipEntity>()
                         .FirstOrDefault(x => x.ExternalReferenceId == externalReferenceId);

            if (entity != null)
            {
                _dbContext.Remove(entity);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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;
            }
        }