Пример #1
0
        public List <T> Fetch(LoadAllArgs <T> args = null)
        {
            Clear();
            var agl = DataAccessor.AggregateLoad <T>(args);

            if (agl == null || agl.Any(a => a == null))
            {
                throw new BDadosException("CRITICAL DATA MAPPING ERROR!");
            }
            if (orderingExpression != null)
            {
                if (Ordering == OrderingType.Desc)
                {
                    agl = agl.OrderByDescending(orderingExpression).ToList();
                }
                else
                {
                    agl = agl.OrderBy(orderingExpression).ToList();
                }
            }
            orderingExpression = null;
            OrderingMember     = null;
            GroupingMember     = null;

            return(agl);
        }
Пример #2
0
 public List <T> Aggregate()
 {
     return(DataAccessor.AggregateLoad(LoadAllArgs));
 }