示例#1
0
 public IQuerySet <T> OrderByDescing(Expression <Func <T, object> > field)
 {
     if (field != null)
     {
         OrderbyExpressionList.Add(field, EOrderBy.Desc);
     }
     return(this);
 }
示例#2
0
 public IQuerySet <T> OrderBy <TProperty>(Expression <Func <TProperty, object> > field)
 {
     if (field != null)
     {
         OrderbyExpressionList.Add(field, EOrderBy.Asc);
     }
     return(this);
 }
示例#3
0
 /// <inheritdoc />
 public virtual Order <T> OrderByDescing <TProperty>(Expression <Func <TProperty, object> > field)
 {
     if (field != null)
     {
         OrderbyExpressionList.Add(field, EOrderBy.Desc);
     }
     return(this);
 }
示例#4
0
 public Order <T> OrderBy(Expression <Func <T, object> > field)
 {
     if (field != null)
     {
         OrderbyExpressionList.Add(field, EOrderBy.Asc);
     }
     return(this);
 }
示例#5
0
        /// <inheritdoc />
        public virtual Order <T> OrderBy <TProperty>(Expression <Func <T, TProperty> > field)
        {
            if (field != null)
            {
                OrderbyExpressionList.Add(EOrderBy.Asc, field);
            }

            return(this);
        }
示例#6
0
        /// <summary>
        /// 倒叙
        /// </summary>
        /// <typeparam name="TProperty"></typeparam>
        /// <param name="field"></param>
        /// <returns></returns>
        public QuerySet <T> OrderByDescing <TProperty>(Expression <Func <T, TProperty> > field)
        {
            if (field != null)
            {
                OrderbyExpressionList.Add(EOrderBy.Desc, field);
            }

            return(this);
        }