mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Add OrderBy(string expShortName, FormattableString expOrderBy, OrderByType type = OrderByType.Asc)
This commit is contained in:
@@ -1339,6 +1339,12 @@ namespace SqlSugar
|
|||||||
this._OrderBy(expression, type);
|
this._OrderBy(expression, type);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
public virtual ISugarQueryable<T> OrderBy(string expShortName, FormattableString expOrderBy, OrderByType type = OrderByType.Asc)
|
||||||
|
{
|
||||||
|
var exp = DynamicCoreHelper.GetMember(typeof(T), typeof(object), expShortName, expOrderBy);
|
||||||
|
this._OrderBy(exp, type);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public virtual ISugarQueryable<T> OrderByDescending(Expression<Func<T, object>> expression)
|
public virtual ISugarQueryable<T> OrderByDescending(Expression<Func<T, object>> expression)
|
||||||
{
|
{
|
||||||
this._OrderBy(expression, OrderByType.Desc);
|
this._OrderBy(expression, OrderByType.Desc);
|
||||||
|
@@ -118,6 +118,7 @@ namespace SqlSugar
|
|||||||
ISugarQueryable<T> OrderByPropertyName(string orderPropertyName,OrderByType? orderByType=null);
|
ISugarQueryable<T> OrderByPropertyName(string orderPropertyName,OrderByType? orderByType=null);
|
||||||
ISugarQueryable<T> OrderByPropertyNameIF(bool isOrderBy,string orderPropertyName, OrderByType? orderByType = null);
|
ISugarQueryable<T> OrderByPropertyNameIF(bool isOrderBy,string orderPropertyName, OrderByType? orderByType = null);
|
||||||
ISugarQueryable<T> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
|
ISugarQueryable<T> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
|
||||||
|
ISugarQueryable<T> OrderBy(string expShortName, FormattableString expOrderBy, OrderByType type = OrderByType.Asc);
|
||||||
ISugarQueryable<T> OrderByDescending(Expression<Func<T, object>> expression);
|
ISugarQueryable<T> OrderByDescending(Expression<Func<T, object>> expression);
|
||||||
ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderByFields);
|
ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderByFields);
|
||||||
ISugarQueryable<T> OrderByIF(bool isOrderBy, Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
|
ISugarQueryable<T> OrderByIF(bool isOrderBy, Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
|
||||||
|
Reference in New Issue
Block a user