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); }
public List <T> Aggregate() { return(DataAccessor.AggregateLoad(LoadAllArgs)); }