How to eager load in WCF Ria Services/Linq2SQLDomainModel


i have databound grid @ view (xaml) , itemsource points reportscollection. reports entity has 3 primitives , complex types. these 3 shown expected @ datagrid. additionally reports entity has property of type store. when loading reports via getreports domain method, figure out primitives returned , not whole graph of depth. so, wanted load store property too, made alteration @ domain service:

 
public iqueryable<report> getreports()  {      return this.objectcontext.reports.include("store");  }
 

from see @ immediate window, store loaded expected, when returned client still pruned. how can fixed?

thank you!

 do have [include] tag on store property in report_metadata class?



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........