다음을 통해 공유


ConcurrencyBehavior 열거형

Contains values to indicate the optimistic concurrency behavior that should be applied when performing entity update and delete operations.

네임스페이스: Microsoft.Xrm.Sdk
어셈블리: Microsoft.Xrm.Sdk(Microsoft.Xrm.Sdk.dll에 있음)

구문

‘선언
<DataContractAttribute(Name:="ConcurrencyBehavior", Namespace:="https://schemas.microsoft.com/xrm/7.1/Contracts")> _
Public Enumeration ConcurrencyBehavior
[DataContractAttribute(Name="ConcurrencyBehavior", Namespace="https://schemas.microsoft.com/xrm/7.1/Contracts")] 
public enum ConcurrencyBehavior

구성원

구성원 이름 설명
AlwaysOverwrite Specifies the behavior where an update or delete operation is applied without regard to the version of the record in the database. Value = 2.If optimistic concurrency is not enabled for the target entity, the AlwaysOverwrite behavior is applied.
Default Specifies to use the default behavior. Value = 0. The default value is also used if no value is set in the ConcurrencyBehavior property of the request. The meaning of “default” is interpreted differently based on the calling context.
IfRowVersionMatches Specifies the behavior where an update or delete operation is only applied if the entity record in the database has the same row version as the entity or entity reference in the request. Value = 1.If no row version value is provided on the entity or entity references in the request, the request fails immediately.

설명

For the Default option, the following behavior applies based on the indicated conditions.

IsOptimisticConcurrencyEnabled Source Behavior

No

Any

AlwaysOverwrite

Yes

Any

AlwaysOverwrite

Yes

Web service

IfVersionMatches

Yes

Plug-in/custom workflow activity

AlwaysOverwrite

플랫폼

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

참고 항목

참조

Microsoft.Xrm.Sdk 네임스페이스

기타 리소스

Reduce potential data loss using optimistic concurrency

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.