SaveOptions Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the behavior of the object context when the SaveChanges(SaveOptions) method is called.
This enumeration supports a bitwise combination of its member values.
public enum class SaveOptions
[System.Flags]
public enum SaveOptions
[<System.Flags>]
type SaveOptions =
Public Enum SaveOptions
- Inheritance
- Attributes
Fields
AcceptAllChangesAfterSave | 1 | After changes are saved, the AcceptAllChangesAfterSave method is called, which resets change tracking in the ObjectStateManager. |
DetectChangesBeforeSave | 2 | 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 | 0 | Changes are saved without the DetectChanges() or the AcceptAllChangesAfterSave methods being called. |
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示