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.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
| Member name | Description | |
|---|---|---|
| AcceptAllChangesAfterSave | After changes are saved, the M:System.Data.Objects.ObjectContext.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 M:System.Data.Objects.ObjectContext.AcceptAllChangesAfterSave methods being called. |
.NET Framework
Available since 4.0
Available since 4.0
Show: