This is a migrated thread and some comments may be shown as answers.

With ADO.Net Data Services - Saving entities with references

1 Answer 80 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 2
Robert asked on 02 Nov 2009, 07:57 PM
Hi There,

I've exposed my OpenAccess generated classes via ADO.Net data services.  I am wondering how to deal with the following scenario where I have a relationship between Order and OrderDetail and I would like to create both objects at the same time and have the OrderID automatically pushed into the OrderDetail before it is saved.

With my current approach of settings the data values on the client things don't seem to magically happen in the service as I get null insert exception.  I am expecting that my both my Order and OrderDetail are sent for saving and the Order is done first, then its primary key is used to insert the OrderDetail.

Any help here would be much appreciated.

Robert

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 04 Nov 2009, 09:07 AM
Hello Robert,

We can continue our conversation on the issue in your support thread #255175. With the Q3 enhancements there should basically be no problems of this kind.

Sincerely yours,
Zoran
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Integration with other products
Asked by
Robert
Top achievements
Rank 2
Answers by
Zoran
Telerik team
Share this question
or