You need to use Expand() to access more than one level of the returned object graph Loading Deferred Content (WCF Data Services) Something like: var result = (from d in db.Dinners. Expand("RSVPs") select d).
You need to use Expand() to access more than one level of the returned object graph. Loading Deferred Content (WCF Data Services) Something like: var result = (from d in db.Dinners. Expand("RSVPs") select d).
But couldn't figure out the way. Using Expand("RSVPs") causes a different error: Error processing response stream. Server failed with following message: An error occurred while processing this request.
Any idea why? Thank you very much. – Saxman Sep 9 '10 at 0:24 @Saxman, the string needs to be the property name.
Please read the documentation and then try "RSVPs" – jfar Sep 9 '10 at 0:45 that's what I did, I've used "RSVPs", not "RSVPS", also tried couple different combinations without success. :( Thanks. – Saxman Sep 9 '10 at 1:07 @Saxman, whats the full error, check the inner exception?
– jfar Sep 9 '10 at 1:51 Inner exception is null, it gave me error on my asp. Net mvc code though, where I have the foreach loop: . Accessing the generated Url directly in browser also gives me the same error: http://localhost:60538/service.
Svc/Dinners()? $expand=RSVPs. Thanks for looking.
– Saxman Sep 9 '10 at 2:11.
Apparently, the problem is within the keyword virtual when I create the POCO classes with related tables. If I have the virtual keyword when referencing ICollection inside Dinner class or Dinner inside my RSVP class, lazy loading is enabled, but WCF Data Service stopped working! Taking the virtual keyword out and the WCF Data service started to work again, but then I don't have lazy/deferred loading enabled!
I'm not sure if this is a feature or a bug?! For now, I guess I'll wait for the next release to really start using EF POCO and WCF Data Service. Thanks all for looking.
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.