Browse Source

Update .net core version

pull/19/head
sunkaixuan 3 years ago
parent
commit
f9a6ea94ed
  1. 18
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

18
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

@ -538,12 +538,26 @@ namespace SqlSugar
else if (method.Method.Name == "Skip")
{
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")
{
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")
{

Loading…
Cancel
Save