With ADO.Net Data Services - Saving entities with references

2 posts, 0 answers
  1. Robert
    Robert avatar
    40 posts
    Member since:
    Jul 2008

    Posted 02 Nov 2009 Link to this post

    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
  2. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 04 Nov 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top