예제 #1
0
        public virtual List <T> Get(List <dynamic> ids, List <string> includes, List <OrderBy> orderBys, Paging paging)
        {
            _permissionService.Get();

            using (var context = _contextFactory.Create())
            {
                IQueryable <T> query = context.Set <T>();

                query = _scopeOfResponsibilityService.FilterResultOnCurrentPrincipal(query);

                query = _filterService.FilterResultsOnGet(query, ids);

                query = _filterService.AddIncludes(query, includes);

                query = _filterService.AddOrderBys(query, orderBys);

                query = _filterService.AddPaging(query, paging);

                var results = query.ToList();

                return(results);
            }
        }