This question is locked. New answers and comments are not allowed.
Hi All,
I have created a Silverlight application with an ADO.NET Data Service (created with de Data Service Wizard).
In my model I have a class A which has a reference to class B. In class A I have two fields mapped to the same column in the database. One field is a simple field (The ID field of referenced class B). The other field is a reference to class B.
In one case I want to insert a new object A. I only have the ID value available of an existing object B I want to reference in my new object A.
When I create my new object A, I fill only the simple field (The ID field available in class A).
If I look in the database after saving the changes the value of the mapped column in the database is NULL.
In the On-line manual I read the section about "Mapping Fields to the same columns". There you say "Simple fields are selected before reference fields". Is this true?
How can I fill the reference of existing Object B in my new Object A when I only have the value of the ID field available of the existing object B?
Thanks.
I have created a Silverlight application with an ADO.NET Data Service (created with de Data Service Wizard).
In my model I have a class A which has a reference to class B. In class A I have two fields mapped to the same column in the database. One field is a simple field (The ID field of referenced class B). The other field is a reference to class B.
In one case I want to insert a new object A. I only have the ID value available of an existing object B I want to reference in my new object A.
When I create my new object A, I fill only the simple field (The ID field available in class A).
If I look in the database after saving the changes the value of the mapped column in the database is NULL.
In the On-line manual I read the section about "Mapping Fields to the same columns". There you say "Simple fields are selected before reference fields". Is this true?
How can I fill the reference of existing Object B in my new Object A when I only have the value of the ID field available of the existing object B?
Thanks.