entity framework - How to eager load in WCF Ria Services/Linq2SQLDomainModel -


I have a database grid on my view (XAM) and there are item resources for a report collection. There are ancient and some complex types. All three have been shown as expectations of the datagrid. Apart from this, there is a type of shop in the report unit. When loading reports through the GetReports domain method, I quickly understand that only the priorities come back and there are not all the graphs of some depth, so, as I wanted to load the store property, I used to do my domain service This change was made:

  Public IQueryable & lt; Report & gt; GetReports () {return.ObjectContext.Reports.Include ("Store"); }  

I see from the immediate window, the store is relatively loaded, but while returning to the client, it is still sorted out. How can this be fixed?

Thank you!

To store the store's property [Include] ReportMetadata class. [MetadataTypeAttivate (Typf (report report metadata data)) Public partial class report {Internal sealed class reportMatetta {[Include] Public Stores Store; }}


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -