OA RIA How do you do eager loading?

4 posts, 0 answers
  1. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 22 Jun 2010 Link to this post

    With OA's and RIA, is it possible to do eager loading?

    e.g. With RIA and ADO you would do
    this.DataContext.MyEntity
    .Include("ChildEntitity")
    .Include("ChildEntitiy.GrandChildEntity") etc.


    (How) Can I do this with OA and RIA? (Do I need to need use joins? Can you provide a examples?)
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 22 Jun 2010 Link to this post

    Hi Alexander Sun,

    Currently this can not be done out of the box. The only way to achieve that as of now is to place the [Include] attribute above each of the referenced fields you want to be included. When you do that you will simply need to rebuild and our Metadata Provider will pick up everything and generate the corresponding attributes on the client side thus enabling the eager loading. Unfortunately currently we don't have examples showing those features since our RIA support is still a new feature but we are actively working on providing better documentation and example coverage.

    Kind regards,
    Petar
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. mike okon
    mike okon avatar
    40 posts
    Member since:
    Dec 2009

    Posted 15 Mar 2013 Link to this post

    Hi, has support for this been provided in 2013 Q1??

    mike
  5. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 20 Mar 2013 Link to this post

    Hello Mike,

     I am afraid that this is still not implemented. We do, however, have something similar in our plans for the future releases.

    Greetings,
    Petar
    the Telerik team
    Free Webinar: OpenAccess Integration in Sitefinity. SIGN UP NOW.
Back to Top