Suppose I have the following entities created from database tables:
Person
Student
The student includes Person as a navigation property.
A person has the Country navigation property for connecting the Country search table.
In the student metadata I put [Include]for the Person property for navigation. In the Person metadata I put [Include]for the Country navigation property.
When loading student data, I want to get a load to include the Person and Country data:
this.ObjectContext.Students.Include("Person").Include("Country");
This works great when I use a previous version of the RIA Service data service. Now that it has been changed to WCF Ria Service, the above no longer works. The system will inform me about the error: The country is not a navigation characteristic of the Student.
How to solve this problem?