ConcurrencyBehavior-opsomming
Contains values to indicate the optimistic concurrency behavior that should be applied when performing entity update and delete operations.
Naamruimte: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntaxis
'Declaratie
<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
Leden
Lidnaam | Beschrijving |
---|---|
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. |
Opmerkingen
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 |
Platforms
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
Zie ook
Verwijzing
Overige resources
Reduce potential data loss using optimistic concurrency
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.