目前我有:
context.Entry(employee).Reload();
context.Entry(employee).Reference(p => p.Manager).Load();
context.Entry(employee).Reference(p => p.Department).Load();
我希望能够不需要逐个指定相关实体而加载它们。类似以下方式会非常理想:
context.Entry(employee).Reload();
context.Entry(employee).LoadAllReferences();
可以做到吗?