This is a migrated thread and some comments may be shown as answers.

OA RIA How do you do eager loading?

3 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 22 Jun 2010, 05:11 AM
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?)

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 22 Jun 2010, 12:47 PM
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
0
mike okon
Top achievements
Rank 1
answered on 15 Mar 2013, 03:08 PM
Hi, has support for this been provided in 2013 Q1??

mike
0
PetarP
Telerik team
answered on 20 Mar 2013, 01:31 PM
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.
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
PetarP
Telerik team
mike okon
Top achievements
Rank 1
Share this question
or