This question is locked. New answers and comments are not allowed.
I am having an issue where the OA is saving an new item that has been removed. I am using OpenAccess, version 2012.2.816.1, in ASP.NET 3.5.
There is a parent/child relationship of App/Plans. The collection Plans in app has the IsManaged property set to true, per the development instructions. The following code snippet is executed:
When SaveChanges is called on the context object, the context still thinks the newPlan object should be saved, but the save fails because it correctly does not set the foreign key property. The issue here is the save should not happen on newPlan because it was removed.
There is a parent/child relationship of App/Plans. The collection Plans in app has the IsManaged property set to true, per the development instructions. The following code snippet is executed:
app.Plans.Add(newPlan);
app.Plans.Remove(newPlan);
When SaveChanges is called on the context object, the context still thinks the newPlan object should be saved, but the save fails because it correctly does not set the foreign key property. The issue here is the save should not happen on newPlan because it was removed.