Skip to content

Commit

Permalink
Correct inheritance logic
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Oct 18, 2019
1 parent 6a37d9d commit 0e12de8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ private Expression ApplyQueryFilter(NavigationExpansionExpression navigationExpa
// We need to do entity equality, but that requires a full method call on a query root to properly flow the
// entity information through. Construct a MethodCall wrapper for the predicate with the proper query root.
var filterWrapper = Expression.Call(
QueryableMethods.Where.MakeGenericMethod(sequenceType),
NullAsyncQueryProvider.Instance.CreateEntityQueryableExpression(sequenceType),
QueryableMethods.Where.MakeGenericMethod(rootEntityType.ClrType),
NullAsyncQueryProvider.Instance.CreateEntityQueryableExpression(rootEntityType.ClrType),
filterPredicate);
var rewrittenFilterWrapper = (MethodCallExpression)_entityEqualityRewritingExpressionVisitor.Rewrite(filterWrapper);
filterPredicate = rewrittenFilterWrapper.Arguments[1].UnwrapLambdaFromQuote();
Expand Down

0 comments on commit 0e12de8

Please sign in to comment.