diff --git a/src/EFCore.InMemory/Query/Internal/InMemoryShapedQueryCompilingExpressionVisitor.ShaperExpressionProcessingExpressionVisitor.cs b/src/EFCore.InMemory/Query/Internal/InMemoryShapedQueryCompilingExpressionVisitor.ShaperExpressionProcessingExpressionVisitor.cs index 7c45c681841..5f8f37002ff 100644 --- a/src/EFCore.InMemory/Query/Internal/InMemoryShapedQueryCompilingExpressionVisitor.ShaperExpressionProcessingExpressionVisitor.cs +++ b/src/EFCore.InMemory/Query/Internal/InMemoryShapedQueryCompilingExpressionVisitor.ShaperExpressionProcessingExpressionVisitor.cs @@ -256,9 +256,9 @@ protected override Expression VisitMethodCall(MethodCallExpression methodCallExp private static void IncludeReference( QueryContext queryContext, TEntity entity, - TIncludedEntity relatedEntity, + TIncludedEntity? relatedEntity, INavigationBase navigation, - INavigationBase inverseNavigation, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery) where TIncludingEntity : class, TEntity @@ -298,7 +298,7 @@ private static void IncludeCollection innerShaper, TEntity entity, INavigationBase navigation, - INavigationBase inverseNavigation, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery, bool setLoaded) diff --git a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs index 4e14744f78b..7d47b8228c9 100644 --- a/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs +++ b/src/EFCore.Relational/Query/RelationalShapedQueryCompilingExpressionVisitor.ShaperProcessingExpressionVisitor.cs @@ -1151,9 +1151,9 @@ private static TValue ThrowReadValueException( private static void IncludeReference( QueryContext queryContext, TEntity entity, - TIncludedEntity relatedEntity, + TIncludedEntity? relatedEntity, INavigationBase navigation, - INavigationBase inverseNavigation, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery) where TEntity : class @@ -1240,7 +1240,7 @@ private static void PopulateIncludeCollection IReadOnlyList outerIdentifierValueComparers, IReadOnlyList selfIdentifierValueComparers, Func innerShaper, - INavigationBase inverseNavigation, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery) where TIncludingEntity : class @@ -1395,8 +1395,8 @@ private static void PopulateSplitIncludeCollection childIdentifier, IReadOnlyList identifierValueComparers, Func innerShaper, - Action relatedDataLoaders, - INavigationBase inverseNavigation, + Action? relatedDataLoaders, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery) where TIncludingEntity : class @@ -1476,8 +1476,8 @@ private static async Task PopulateSplitIncludeCollectionAsync childIdentifier, IReadOnlyList identifierValueComparers, Func innerShaper, - Func relatedDataLoaders, - INavigationBase inverseNavigation, + Func? relatedDataLoaders, + INavigationBase? inverseNavigation, Action fixup, bool trackingQuery) where TIncludingEntity : class @@ -1720,7 +1720,7 @@ private static void PopulateSplitCollection childIdentifier, IReadOnlyList identifierValueComparers, Func innerShaper, - Action relatedDataLoaders) + Action? relatedDataLoaders) where TRelatedEntity : TElement where TCollection : class, ICollection { @@ -1796,7 +1796,7 @@ private static async Task PopulateSplitCollectionAsync childIdentifier, IReadOnlyList identifierValueComparers, Func innerShaper, - Func relatedDataLoaders) + Func? relatedDataLoaders) where TRelatedEntity : TElement where TCollection : class, ICollection {