This commit is contained in:
parent
e6d9864c94
commit
441f0dbca3
|
@ -59,6 +59,15 @@ namespace ShardingCore.Sharding.MergeContexts
|
|||
var orders = orderByContext.PropertyOrders;
|
||||
|
||||
var combineQueryable = mergeQueryCompilerContext.GetQueryCombineResult().GetCombineQueryable();
|
||||
|
||||
if (skip is < 0)
|
||||
{
|
||||
throw new ShardingCoreException($"queryable:{mergeQueryCompilerContext.GetQueryCombineResult().GetQueryCompilerContext().GetQueryExpression().ShardingPrint()} skip should >= 0");
|
||||
}
|
||||
if (take is < 0)
|
||||
{
|
||||
throw new ShardingCoreException($"queryable:{mergeQueryCompilerContext.GetQueryCombineResult().GetQueryCompilerContext().GetQueryExpression().ShardingPrint()} take should >= 0");
|
||||
}
|
||||
//去除分页,获取前Take+Skip数量
|
||||
var reWriteQueryable = combineQueryable;
|
||||
if (take.HasValue || skip.HasValue)
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
using System;
|
||||
|
||||
/*
|
||||
* @Author: xjm
|
||||
* @Description:
|
||||
* @Date: DATE TIME
|
||||
* @Email: 326308290@qq.com
|
||||
*/
|
||||
namespace ShardingCore.Sharding.ParseEngines
|
||||
{
|
||||
public class ParseEngine
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue