mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Includes bug
This commit is contained in:
parent
0925bc7d87
commit
58f0a8bc7b
@ -2833,6 +2833,7 @@ namespace SqlSugar
|
||||
_Size=it._Size
|
||||
}).ToList();
|
||||
}
|
||||
asyncQueryableBuilder.Includes = this.QueryBuilder.Includes;
|
||||
asyncQueryableBuilder.Take = this.QueryBuilder.Take;
|
||||
asyncQueryableBuilder.Skip = this.QueryBuilder.Skip;
|
||||
asyncQueryableBuilder.SelectValue = this.QueryBuilder.SelectValue;
|
||||
|
@ -17,7 +17,15 @@ namespace SqlSugar
|
||||
public MapperExpressionResolve(Expression expression, InvalidOperationException ex)
|
||||
{
|
||||
this.expression = expression;
|
||||
OldNavgate(expression, ex);
|
||||
NavgateExpression navgate = new NavgateExpression();
|
||||
if (navgate.IsNavgate(expression))
|
||||
{
|
||||
navgate.Execute(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
OldNavgate(expression, ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void OldNavgate(Expression expression, InvalidOperationException ex)
|
||||
|
@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
internal class NavgateExpression
|
||||
{
|
||||
internal bool IsNavgate(Expression expression)
|
||||
{
|
||||
var exp = expression;
|
||||
if (exp is UnaryExpression)
|
||||
{
|
||||
exp = (exp as UnaryExpression).Operand;
|
||||
}
|
||||
if (exp is MemberExpression)
|
||||
{
|
||||
var memberExp=exp as MemberExpression;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
internal void Execute(MapperExpressionResolve mapperExpressionResolve)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -104,6 +104,7 @@
|
||||
<Compile Include="Enum\NavigatType.cs" />
|
||||
<Compile Include="Enum\SugarActionType.cs" />
|
||||
<Compile Include="Entities\SugarConnection.cs" />
|
||||
<Compile Include="ExpressionsToSql\ResolveItems\NavgateExpression.cs" />
|
||||
<Compile Include="ExpressionsToSql\Subquery\SubTemplate.cs" />
|
||||
<Compile Include="ExpressionsToSql\Subquery\SubqueryableN.cs" />
|
||||
<Compile Include="Abstract\QueryableProvider\QueryableContext.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user