How do you retrieve records and all child records in one database hit in ADO.NET Entities?

Use the . Include method to load the related entities. For example: from photo in entitiesContext.

Photo . Include("UserReference") . Include("PhotoComments") etc.

Use the . Include method to load the related entities. For example: from photo in entitiesContext.

Photo . Include("UserReference") . Include("PhotoComments") etc...

– Ash Apr 27 '09 at 12:44 No if there is a comment you will have a value, if there is no comment you would get NULL. Check for nulls should be sufficient. – mhenrixon Apr 27 '09 at 19:16.

When creating your ObjectQuery, call the Include method, passing in the name of the subentity that you want to load automatically. You can chain calls to Include if you have multiple subentities that you want to load. See this article for more information.

Maybe change the select to something like: select new {photo, photo. UserReference, photo. PhotoComments}.

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