SaveChangesOptions 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.
Indicates change options when SaveChanges() is called.
This enumeration supports a bitwise combination of its member values.
public enum class SaveChangesOptions
[System.Flags]
public enum SaveChangesOptions
[<System.Flags>]
type SaveChangesOptions =
Public Enum SaveChangesOptions
- Inheritance
- Attributes
Fields
Batch | 1 | All pending changes are saved in a single batch request. |
ContinueOnError | 2 | Pending changes are saved by using multiple requests to the server, and the operation continues after an error occurs. |
None | 0 | Pending changes are saved by using multiple requests to the server, but the operation stops on the first failure (default). |
ReplaceOnUpdate | 4 | Pending updates are made by replacing all values of the entity in the data source with values from the updated entity (HTTP PUT) instead of just updating changed values (HTTP MERGE), which is the default behavior. |
Remarks
When the ContinueOnError
option is set, subsequent operations are still tried even after an error occurs.
When batching is not used, the DataServiceResponse.BatchHeaders property returns an empty collection, and the DataServiceResponse.BatchStatusCode property is zero.
You cannot set both Batch
and ContinueOnError
at the same time.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback을 참조하세요.
출시 예정: 2024년 내내 콘텐츠 피드백 메커니즘인 GitHub 문제를 단계적으로 폐지하고 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은다음에 대한 사용자 의견 제출 및 보기