MemberTransactionBehavior Enum

Definition

指定创建、更新或合并实体成员时的事务行为。Specifies the transaction behavior when creating, updating, or merging an entity member.

public enum class MemberTransactionBehavior
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09")]
public enum MemberTransactionBehavior
type MemberTransactionBehavior = 
Public Enum MemberTransactionBehavior
Inheritance
MemberTransactionBehavior
Attributes

Fields

AllOrNothingByBatch 2

如果任意位置存在错误,则整批均失败。If there was an error anywhere, fail the whole batch. 例如,在创建多个新成员时,如果其中一个新成员具有无效的属性值,则不创建该新成员或同一批中的任何其他新成员(即使这些成员没有错误)。E.g., when creating multiple new members, if one of the new members has an attribute value that is not valid, do not create the new member or any of the other new members (even those without errors) in the same batch.

AllOrNothingByMember 1

如果存在一个错误,则与具有此错误的成员相关的所有更改均失败。If there was an error, fail all changes related to the member with the error. 例如,在创建多个新成员时,如果其中一个新成员具有无效的属性值,则不创建该新成员。E.g., when creating multiple new members, if one of the new members has an attribute value that is not valid, do not create the new member. 但会创建同一批中没有错误的其他新成员。But create other new members within the same batch that do not have errors.

BestEffort 0

只有存在错误的更改失败。Only fail those changes that have errors. 例如,在创建新成员时,如果其中一个成员属性值无效,则创建该成员并设置任何有效属性,将无效属性保留设置为 null。E.g., when creating a new member, if one of the member's attribute values is not valid, create the member and set any attributes that are valid, leaving the not valid attribute set to null.

Remarks

MemberTransactionBehavior简单类型指定创建、更新或合并实体成员时的事务行为。The MemberTransactionBehavior simple type specifies the transaction behavior when creating, updating, or merging an entity member.

Applies to