Browse Source

NavgateExpression

pull/15/MERGE
sunkaixuan 3 years ago
parent
commit
718f8fb7c4
  1. 2
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs
  2. 7
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/NavgateExpression.cs

2
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs

@ -17,7 +17,7 @@ namespace SqlSugar
public MapperExpressionResolve(Expression expression, InvalidOperationException ex)
{
this.expression = expression;
NavgateExpression navgate = new NavgateExpression();
NavgateExpression navgate = new NavgateExpression(context);
if (navgate.IsNavgate(expression))
{
navgate.Execute(this);

7
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/NavgateExpression.cs

@ -9,6 +9,13 @@ namespace SqlSugar
{
internal class NavgateExpression
{
private SqlSugarProvider context;
public NavgateExpression(SqlSugarProvider context)
{
this.context = context;
}
internal bool IsNavgate(Expression expression)
{
var exp = expression;

Loading…
Cancel
Save