locked
Sync child tables RRS feed

  • Question

  • I'm using NHibernate in my data access layer. I have entities (parent) and child objects inside it and have enabled inverse update, insert in Nhibernate. While i update parent object, all the child objects get updated in local store which is perfect.

    But during sync, the uploads fail and only the parent object is uploaded correctly. All the child objects fail to upload and when i checked the SDF file, all the child entities are available. I didn't get the ApplyChangesFailed event to fire for some reason.

    Any help is appreciated.

     

    Thursday, November 3, 2011 9:46 AM

Answers

  • which provider are you using?

    in what order did you add the tables in the sync group or in the scope? the parent table should be added before the child tables.

    did you subscribe to the ApplyChangesFailed event on the remote provider side?

    • Marked as answer by Viswanth Friday, November 4, 2011 4:51 AM
    Thursday, November 3, 2011 1:20 PM

All replies

  • which provider are you using?

    in what order did you add the tables in the sync group or in the scope? the parent table should be added before the child tables.

    did you subscribe to the ApplyChangesFailed event on the remote provider side?

    • Marked as answer by Viswanth Friday, November 4, 2011 4:51 AM
    Thursday, November 3, 2011 1:20 PM
  • I missed the order.. parent tables first and then the child tables.

    Friday, November 4, 2011 4:51 AM