How to know the order of update with Domain context SubmitChanges? RRS feed

  • Question

  • Suppose I have 3 entities generated from EF, say tab1, tab2 and tab3. In SL app, I call SubmitChanges to save data to DB, all changes will be process by WCF and EF automatically. 

    Question is: how can I know the order of Update operation in Database? 

    I need to know this because I have triggers on those tables and need to know the order of the updating. 

    Monday, January 7, 2013 4:05 PM


  • First, to answer the unstated question RIA Services doesn't have any control of the order of operations, that is up to EF.

    My understanding is that EF uses foreign key relationships to decide on the order of operations, in the absence of a foreign key it processes the entities alphabetically by the name of the entity.

    http://www.riaservicesblog.net | RIA Services and MVVM http://bit.ly/pgL97k

    Monday, January 7, 2013 6:39 PM