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

SQL Server PSProvider SQL Server Authentication

BIT Version

How to calculate the delta size while diffing the files in TeamFoundationServer ?