RIA services loading related entities?

There's an example of NestorArturo's answer here: timheuer.com/blog/archive/2010/01/05/mas....

I know of include to include related entities in the query. I'll update the question to be more explicit. – GriffinHeart Oct 14 at 15:56 I understand your question now.

EF won't treat data as related until you explicitly ask it to, either with an Include or a bunch of N+1-problem-inducing RelatedEnd. Load calls. This question and its answers sound very similar: stackoverflow.Com/questions/747184/….

In some ways EF seems to have removed some things we took for granted with DataSets. Sigh. – James McLachlan Oct 17 at 15:58.

In the Ria server-side syntax you have to do two things to send to the client the related entities: In the Metadata for Entity1 decorate the property Entity2 (or whatever your navigational property is) with Include. When querying (with Linq I guess), reference the relation: return this.ObjectContext. Entities1.

Include("YourNavigationalPropertyHere").

Yes I do that if I want to load the entities related to that query. I'll updated the question. – GriffinHeart Oct 14 at 15:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions