mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 05:37:58 +08:00
commit
5ed9a06445
@ -1078,6 +1078,18 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ISugarQueryable<T> GroupByIF(bool isGroupBy, string groupFields)
|
||||||
|
{
|
||||||
|
if (isGroupBy)
|
||||||
|
{
|
||||||
|
GroupBy(groupFields);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public virtual ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderFileds)
|
public virtual ISugarQueryable<T> OrderByIF(bool isOrderBy, string orderFileds)
|
||||||
{
|
{
|
||||||
if (isOrderBy)
|
if (isOrderBy)
|
||||||
|
@ -117,6 +117,8 @@ namespace SqlSugar
|
|||||||
ISugarQueryable<T> GroupBy(string groupFileds);
|
ISugarQueryable<T> GroupBy(string groupFileds);
|
||||||
ISugarQueryable<T> GroupByIF(bool isGroupBy, Expression<Func<T, object>> expression);
|
ISugarQueryable<T> GroupByIF(bool isGroupBy, Expression<Func<T, object>> expression);
|
||||||
|
|
||||||
|
ISugarQueryable<T> GroupByIF(bool isGroupBy, string groupFields);
|
||||||
|
|
||||||
ISugarQueryable<T> PartitionBy(Expression<Func<T, object>> expression);
|
ISugarQueryable<T> PartitionBy(Expression<Func<T, object>> expression);
|
||||||
ISugarQueryable<T> PartitionBy(string groupFileds);
|
ISugarQueryable<T> PartitionBy(string groupFileds);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user