Skip to content

Commit f4b24b3

Browse files
committed
Fix bug when nothing to include
1 parent ae16621 commit f4b24b3

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)