mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
PartitionBy Add Defalut Take
This commit is contained in:
parent
5f204a3eee
commit
cde8d1e6c5
@ -285,7 +285,7 @@ namespace SqlSugar
|
||||
public virtual ISugarQueryable<T> PartitionBy(Expression<Func<T, object>> expression)
|
||||
{
|
||||
if (QueryBuilder.Take == null)
|
||||
QueryBuilder.Take = 0;
|
||||
QueryBuilder.Take = 1;
|
||||
_PartitionBy(expression);
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user