public IQueryable <ServiceTicket> AllForReport(params Expression <Func <ServiceTicket, object> >[] includeProperties) { var warehouseContext = new FabrikamFiberWebContext("FabrikamFiber-DataWarehouse"); IQueryable <ServiceTicket> query = warehouseContext.ServiceTickets; foreach (var includeProperty in includeProperties) { query = query.Include(includeProperty); } return(query); }
public IQueryable<ServiceTicket> AllForReport(params Expression<Func<ServiceTicket, object>>[] includeProperties) { var warehouseContext = new FabrikamFiberWebContext("FabrikamFiber-DataWarehouse"); IQueryable<ServiceTicket> query = warehouseContext.ServiceTickets; foreach (var includeProperty in includeProperties) { query = query.Include(includeProperty); } return query; }