SaveOptions Enumeration

.NET Framework (current version)

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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