- edited description
specify recursion depth on loading with children
For example, I have many to many between A and B object. When I load B for each A, B has also C and D as cascaded. i am fine with loading C but I dont need D. You can say that, D can be excluded by not setting cascaded But I want D to be loaded when I load E. Since I cant control this loading eagerly, Sometimes things get really slow. I wish that there was an option to load child objects eagerly like with entity framework. Or is there already way around this problem?
Does withChildren call with recursive parameter actually load children+ their children, right? Does it have any role in insert and delete as well?
Comments (7)
-
reporter -
reporter - edited description
-
Account Deactivated This, plz.
-
Just as an idea. Maybe we can add a new signature for the with children methods to pass a
Func<Type, bool>
. The recursion calls this delegate for each level to check if the desired type of objects should be loaded or not. -
- changed title to specify recursion depth on loading with children
Changed the title to better reflect the main point of this issue.
-
reporter Is there any movement or progress on this? this is getting more and more important now. I consider step away from entire package if we cant get something like this
-
I'm not very confident as there's been no progress since February. But you are very welcome to implement this and send a pull request.
- Log in to comment