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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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