Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Apr 2, 2021
2 parents b619ccf + e07ae0d commit cfaf1e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EFCore/Internal/ManyToManyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.EntityFrameworkCore.Storage;

namespace Microsoft.EntityFrameworkCore.Internal
Expand Down Expand Up @@ -174,7 +174,7 @@ private static Expression<Func<TEntity, IEnumerable<TSourceEntity>>> BuildInclud
EnumerableMethods.Where.MakeGenericMethod(typeof(TSourceEntity)),
Expression.MakeMemberAccess(
entityParameter,
(skipNavigation.PropertyInfo ?? (MemberInfo)skipNavigation.FieldInfo!)),
(skipNavigation.GetIdentifyingMemberInfo()!)),
Expression.Lambda<Func<TSourceEntity, bool>>(
ExpressionExtensions.BuildPredicate(keyProperties, keyValues, whereParameter),
whereParameter)), entityParameter);
Expand All @@ -197,7 +197,7 @@ private static Expression<Func<TSourceEntity, IEnumerable<TEntity>>> BuildSelect
return Expression.Lambda<Func<TSourceEntity, IEnumerable<TEntity>>>(
Expression.MakeMemberAccess(
entityParameter,
(navigation.PropertyInfo ?? (MemberInfo)navigation.FieldInfo!)),
(navigation.GetIdentifyingMemberInfo()!)),
entityParameter);
}
}
Expand Down

0 comments on commit cfaf1e5

Please sign in to comment.