public IEnumerable <CustomerSearchModel> GetAll() { var queryData = from C in _context.Customers select C; var result = QueryOperate <Customer> .Execute(queryData); result = (IQueryable <Customer>)ExpandOperator.ExpandRelatedEntities <Customer>(result); //以下执行完后才会去数据库中查询 var customers = result.ToList(); var customerSearch = CustomerOperator.SetCustomerSearchModelCascade(customers); return(customerSearch); }
public IEnumerable <GroupSearchModel> GetAll() { var queryData = from G in _context.Groups select G; var result = QueryOperate <Group> .Execute(queryData); result = (IQueryable <Group>)ExpandOperator.ExpandRelatedEntities <Group>(result); //以下执行完后才会去数据库中查询 var groups = result.ToList(); var groupsSearch = GroupOperator.SetGroupSearchModelCascade(groups); return(groupsSearch); }
public IEnumerable <HolidaySearchModel> GetAll() { var queryData = from H in _context.Holidays select H; var result = QueryOperate <Holiday> .Execute(queryData); result = (IQueryable <Holiday>)ExpandOperator.ExpandRelatedEntities <Holiday>(result); //以下执行完后才会去数据库中查询 var holidays = result.ToList(); var holidaysSearch = HolidayOperator.SetHolidaySearchModelCascade(holidays); return(holidaysSearch); }
public IEnumerable <SceneSearchModel> GetAll() { var queryData = from S in _context.Scenes select S; var result = QueryOperate <Scene> .Execute(queryData); result = (IQueryable <Scene>)ExpandOperator.ExpandRelatedEntities <Scene>(result); //以下执行完后才会去数据库中查询 var scenes = result.ToList(); var scenesSearch = SceneOperator.SetSceneSearchModelCascade(scenes); return(scenesSearch); }
public IEnumerable <AlarmSearchModel> GetAll() { var queryData = from A in _context.Alarms select A; var result = QueryOperate <Alarm> .Execute(queryData); result = (IQueryable <Alarm>)ExpandOperator.ExpandRelatedEntities <Alarm>(result); //以下执行完后才会去数据库中查询 var alarms = result.ToList(); var alarmsSearch = AlarmOperator.SetAlarmSearchModelCascade(alarms); return(alarmsSearch); }
public IEnumerable <LogDescriptionSearchModel> GetAll() { var queryData = from L in _context.LogDescriptions select L; var result = QueryOperate <LogDescription> .Execute(queryData); result = (IQueryable <LogDescription>)ExpandOperator.ExpandRelatedEntities <LogDescription>(result); //以下执行完后才会去数据库中查询 var logDescriptions = result.ToList(); var logDescriptionsSearch = LogDescriptionOperator.SetLogDescriptionSearchModelCascade(logDescriptions); return(logDescriptionsSearch); }
public IEnumerable <DeviceSearchModel> GetAll() { var queryData = from D in _context.Devices select D; var result = QueryOperate <Device> .Execute(queryData); result = (IQueryable <Device>)ExpandOperator.ExpandRelatedEntities <Device>(result); //以下执行完后才会去数据库中查询 var devices = result.ToList(); var devicesSearch = DeviceOperator.SetDeviceSearchModelCascade(devices); return(devicesSearch); }
public async Task <IEnumerable <LogSearchModel> > GetAllAsync() { var queryData = from L in _context.Logs select L; var result = QueryOperate <Log> .Execute(queryData); result = (IQueryable <Log>)ExpandOperator.ExpandRelatedEntities <Log>(result); //以下执行完后才会去数据库中查询 var logs = await result.ToListAsync(); var logsSearch = LogOperator.SetLogSearchModelCascade(logs); return(logsSearch); }
public async Task <IEnumerable <UserSearchModel> > GetAllAsync() { var queryData = from U in _context.Users select U; var result = QueryOperate <ApplicationUser> .Execute(queryData); result = (IQueryable <ApplicationUser>)ExpandOperator.ExpandRelatedEntities <ApplicationUser>(result); //以下执行完后才会去数据库中查询 var users = await result.ToListAsync(); var usersSearch = UserOperator.SetUserSearchModelCascade(users); return(usersSearch); }
public async Task <IEnumerable <ProjectSearchModel> > GetAllAsync() { var queryData = from P in _context.Projects select P; var result = QueryOperate <Project> .Execute(queryData); result = (IQueryable <Project>)ExpandOperator.ExpandRelatedEntities <Project>(result); //以下执行完后才会去数据库中查询 var projects = await result.ToListAsync(); var projectSearch = ProjectOperator.SetProjectSearchModelCascade(projects); return(projectSearch); }
public async Task <IEnumerable <SceneSegmentSearchModel> > GetAllAsync() { var queryData = from S in _context.SceneSegments select S; var result = QueryOperate <SceneSegment> .Execute(queryData); result = (IQueryable <SceneSegment>)ExpandOperator.ExpandRelatedEntities <SceneSegment>(result); //以下执行完后才会去数据库中查询 var sceneSegments = await result.ToListAsync(); var sceneSegmentsSearch = SceneSegmentOperator.SetSceneSegmentSearchModelCascade(sceneSegments); return(sceneSegmentsSearch); }
public async Task <IEnumerable <AlarmMessageSearchModel> > GetAllAsync() { var queryData = from A in _context.AlarmMessages select A; var result = QueryOperate <AlarmMessage> .Execute(queryData); result = (IQueryable <AlarmMessage>)ExpandOperator.ExpandRelatedEntities <AlarmMessage>(result); //以下执行完后才会去数据库中查询 var alarmMessages = await result.ToListAsync(); var alarmMessagesSearch = AlarmMessageOperator.SetAlarmMessageSearchModelCascade(alarmMessages); return(alarmMessagesSearch); }