I'm trying to resolve an error very similar to the one outlined here:
InvalidOperationException when calling SaveChanges in .NET Entity framework
It appears that the solution (which I have not tried yet, admittedly) is to pass System.Data.Objects.SaveOptions.None as the SaveOptions parameter for the SaveChanges() method.
So before I do that, I'm trying to understand exactly how the different SaveOptions work (None, AcceptAllChangesAfterSave, DetectAllChanges). I haven't been able to find a clear explanation of it however, nor am I sure what the default is. Can anyone clarify?
Thanks!
UPDATE: I have posted the actual problem question here: System.InvalidOperationException when trying to iteratively add objects using EF 4