Browse Source

Update OrderByDescending

pull/19/head
sunkaixuan 3 years ago
parent
commit
df11dfd291
  1. 56
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs
  2. 11
      Src/Asp.Net/SqlSugar/Interface/IQueryable.cs

56
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -5056,6 +5056,31 @@ namespace SqlSugar
#endregion
#region OrderBy
public new virtual ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, T4, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4,T5> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public new ISugarQueryable<T, T2, T3, T4,T5> OrderBy(string orderFileds)
{
base.OrderBy(orderFileds);
@ -5581,6 +5606,37 @@ namespace SqlSugar
#endregion
#region OrderBy
public new virtual ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, T4, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public virtual ISugarQueryable<T, T2, T3, T4, T5,T6> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, T6, object>> expression)
{
this._OrderBy(expression, OrderByType.Desc);
return this;
}
public new ISugarQueryable<T, T2, T3, T4, T5,T6> OrderBy(string orderFileds)
{
base.OrderBy(orderFileds);

11
Src/Asp.Net/SqlSugar/Interface/IQueryable.cs

@ -570,6 +570,11 @@ namespace SqlSugar
#endregion
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, T4, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5> OrderByDescending(Expression<Func<T, T2, T3, T4,T5,object>> expression);
new ISugarQueryable<T, T2, T3,T4,T5> OrderBy(string orderFileds);
new ISugarQueryable<T, T2, T3, T4, T5> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
ISugarQueryable<T, T2, T3, T4, T5> OrderBy(Expression<Func<T, T2, object>> expression, OrderByType type = OrderByType.Asc);
@ -685,6 +690,12 @@ namespace SqlSugar
#endregion
#region OrderBy
new ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, T4, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, T4, T5, object>> expression);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderByDescending(Expression<Func<T, T2, T3, T4, T5,T6, object>> expression);
new ISugarQueryable<T, T2, T3,T4,T5,T6> OrderBy(string orderFileds);
new ISugarQueryable<T, T2, T3, T4, T5, T6> OrderBy(Expression<Func<T, object>> expression, OrderByType type = OrderByType.Asc);
ISugarQueryable<T, T2, T3, T4, T5, T6> OrderBy(Expression<Func<T, T2, object>> expression, OrderByType type = OrderByType.Asc);

Loading…
Cancel
Save