The mapping must represent the data you get back from the service. If you retrieve your data from the server it's always an IQueryable of a certain type. The complete model of this type must recreated in a JS object, then this object can be mapped an represent
your object(s) you get back from the server. In your case i think you have only mapped one of the child objects.
KDegrave
Member
96 Points
25 Posts
Re: uncaught exception: Parent entity is not in the parent entity set for this association.
Apr 24, 2012 06:30 AM|LINK
The mapping must represent the data you get back from the service. If you retrieve your data from the server it's always an IQueryable of a certain type. The complete model of this type must recreated in a JS object, then this object can be mapped an represent your object(s) you get back from the server. In your case i think you have only mapped one of the child objects.
greetings
Kristof
Ria4HTML: http://ria4htmldemo.codeplex.com
Linq2IndexedDB: http://linq2indexeddb.codeplex.com