Beispiel #1
0
        private IList GetData()
        {
            var projections  = GridViewExtension.GetColumnProjections(_layoutEntityName);
            var fetchColumns = projections.Select(p => string.Format("{0} AS {1}", p.QueryExpression, p.Projection)).ToArray();
            var selector     = string.Format("new({0})", string.Join(",", fetchColumns));
            var criteria     = _context.GetFilters();

            return(ObjectSpace.GetObjectQuery(_layoutEntityName, selector, criteria).ToList());
        }