SubmitChanges() - Child Entities Not Deleted
Posted: Wed 03 Aug 2011 15:59
I have Entity A which contains a EntitySet. If I make no modifications to Entity A and delete/add several items from EntitySet LinqConnect generates the correct insert/delete statements.
However, if i make a change to Entity A AND delete/add several items from EntitySet LinqConnect generates an Update statement for Entity A but only generates the Insert statements for EntitySet not the delete statements.
If I look at the GetChangeSet() results prior to calling SubmitChanges(), it has the correct results. However, LinqConnect does not generate the correct SQL statements.
I should also note I'm working in a disconnected state. The ORM objects are handed over to an MVC layer where they are changed via jquery. When finished editing, the data is sent back to the server via JSON and mapped to ORM objects and attached to the datacontext.
Is this a known issue? Any thoughts on what I could be doing wrong?
Visual Studio: 2010
LinqConnect: 2.50.25.0
dotConnect for Oracle: 6.30.172.0
However, if i make a change to Entity A AND delete/add several items from EntitySet LinqConnect generates an Update statement for Entity A but only generates the Insert statements for EntitySet not the delete statements.
If I look at the GetChangeSet() results prior to calling SubmitChanges(), it has the correct results. However, LinqConnect does not generate the correct SQL statements.
I should also note I'm working in a disconnected state. The ORM objects are handed over to an MVC layer where they are changed via jquery. When finished editing, the data is sent back to the server via JSON and mapped to ORM objects and attached to the datacontext.
Is this a known issue? Any thoughts on what I could be doing wrong?
Visual Studio: 2010
LinqConnect: 2.50.25.0
dotConnect for Oracle: 6.30.172.0