SaveOptions Enumeration

SaveOptions Enumeration

.NET Framework 4.6 and 4.5

Specifies the behavior of the object context when the SaveChanges(SaveOptions) method is called.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public enum SaveOptions

Member nameDescription

After changes are saved, the M:System.Data.Objects.ObjectContext.AcceptAllChangesAfterSave method is called, which resets change tracking in the ObjectStateManager.


Before changes are saved, the DetectChanges method is called to synchronize the property values of objects that are attached to the object context with data in the ObjectStateManager.


Changes are saved without the DetectChanges or the M:System.Data.Objects.ObjectContext.AcceptAllChangesAfterSave methods being called.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft