What is the limit on FetchStrategy.LoadWith?

Thread is closed for posting
2 posts, 1 answers
  1. David
    David avatar
    10 posts
    Member since:
    Sep 2010

    Posted 18 Jul 2011 Link to this post


    I'm trying to use the fetch strategy method LoadWith() for performance. It appears there is a limit to the number of sub-objects that the fetch can handle. 

    *EDIT* Moments later, I realised that you can't have a fetch plan on a non-persisted property.

  2. Answer
    Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 19 Jul 2011 Link to this post

    Hi David,
    There are limits, we are fetching 3 levels by default, infinit amout of objects. You can change the behavior by setting the MaxFetchDepth and MaxResultsLimit properties.

    All the best,
    Jan Blessenohl
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top