Skip to content

Commit 623510e

Browse files
authored
Merge pull request #35 from codepb/IncludeEverythingFix
Fix bug when nothing to include
2 parents ae16621 + f4b24b3 commit 623510e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DDDToolkit.EntityFramework.Extensions/IncludeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private static IEnumerable<string> GetPropertyPaths(Type type, Type prevType = n
2929

3030
if (entityProperties.Count == 0 && valueProperties.Count == 0)
3131
{
32-
return new[] { rootPath };
32+
return string.IsNullOrEmpty(rootPath) ? new string[0] : new[] { rootPath };
3333
}
3434

3535
return entityProperties

0 commit comments

Comments
 (0)