Skip to content

Commit 66b19a6

Browse files
committed
Fix eager includes of skip navigations
1 parent ec7c478 commit 66b19a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/EntityFrameworkCore.Projectables/Services/ProjectableExpressionReplacer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ private Expression _AddProjectableSelect(Expression node, IEntityType entityType
290290
.Concat(entityType.GetNavigations()
291291
.Where(x => !x.IsShadowProperty())
292292
.Select(x => x.GetMemberInfo(false, false)))
293+
.Concat(entityType.GetSkipNavigations()
294+
.Where(x => !x.IsShadowProperty())
295+
.Select(x => x.GetMemberInfo(false, false)))
293296
// Remove projectable properties from the ef properties. Since properties returned here for auto
294297
// properties (like `public string Test {get;set;}`) are generated fields, we also need to take them into account.
295298
.Where(x => projectableProperties.All(y => x.Name != y.Name && x.Name != $"<{y.Name}>k__BackingField"));

0 commit comments

Comments
 (0)