Esempio n. 1
0
        public void FillFromSortSequence(SortSequenceBase sortSequence)
        {
            if (sortSequence == null)
            {
                throw new ArgumentNullException("sortSequence");
            }

            if (this.Sorts == null)
            {
                this.Sorts = new List <EntitySQLSortItem>();
            }
            sortSequence.FillQuerySorts(this.Sorts, this);
        }
Esempio n. 2
0
        public static EntitySQLQueryWrapper BuildEntitySQLQueryWrapper(SearchCriteriaBase criteria, PagingInfo pagingInfo, SortSequenceBase sortSequence)
        {
            EntitySQLQueryWrapper ret = new EntitySQLQueryWrapper();

            if (criteria != null)
            {
                ret.FillFromSearchCriteria(criteria);
            }
            if (sortSequence != null)
            {
                ret.FillFromSortSequence(sortSequence);
            }
            if (pagingInfo != null)
            {
                ret.FillFromPagingInfo(pagingInfo);
            }

            return(ret);
        }