SaveOptions Enumeration

 

Flags used to modify behavior of ObjectContext.SaveChanges()

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

[FlagsAttribute]
public enum SaveOptions

Member nameDescription
AcceptAllChangesAfterSave

After changes are saved, the AcceptAllChangesAfterSave method is called, which resets change tracking in the ObjectStateManager.

DetectChangesBeforeSave

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.

None

Changes are saved without the DetectChanges or the AcceptAllChangesAfterSave methods being called.