mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update .net core version
This commit is contained in:
@@ -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")
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user