mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
Update navigate query
This commit is contained in:
parent
03231f0912
commit
b5ecd79230
@ -538,12 +538,26 @@ namespace SqlSugar
|
|||||||
else if (method.Method.Name == "Skip")
|
else if (method.Method.Name == "Skip")
|
||||||
{
|
{
|
||||||
var exp = method.Arguments[1];
|
var exp = method.Arguments[1];
|
||||||
result.Skip = (int)ExpressionTool.GetExpressionValue(exp);
|
if (exp is BinaryExpression)
|
||||||
|
{
|
||||||
|
result.Skip = (int)ExpressionTool.DynamicInvoke(exp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.Skip = (int)ExpressionTool.GetExpressionValue(exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (method.Method.Name == "Take")
|
else if (method.Method.Name == "Take")
|
||||||
{
|
{
|
||||||
var exp = method.Arguments[1];
|
var exp = method.Arguments[1];
|
||||||
result.Take = (int)ExpressionTool.GetExpressionValue(exp);
|
if (exp is BinaryExpression)
|
||||||
|
{
|
||||||
|
result.Take = (int)ExpressionTool.DynamicInvoke(exp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.Take = (int)ExpressionTool.GetExpressionValue(exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (method.Method.Name == "ToList")
|
else if (method.Method.Name == "ToList")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user