specify recursion depth on loading with children

Issue #86 new
Emil Alipiev created an issue

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)

  1. Martin Kuckert

    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.

  2. Emil Alipiev 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

  3. Martin Kuckert

    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.

  4. Log in to comment