PrimitivePropertyConfiguration.IsConcurrencyToken Method
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.
Overloads
IsConcurrencyToken() |
Configures the property to be used as an optimistic concurrency token. |
IsConcurrencyToken(Nullable<Boolean>) |
Configures whether or not the property is to be used as an optimistic concurrency token. |
IsConcurrencyToken()
Configures the property to be used as an optimistic concurrency token.
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration IsConcurrencyToken ();
member this.IsConcurrencyToken : unit -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function IsConcurrencyToken () As PrimitivePropertyConfiguration
Returns
The same PrimitivePropertyConfiguration instance so that multiple calls can be chained.
Applies to
IsConcurrencyToken(Nullable<Boolean>)
Configures whether or not the property is to be used as an optimistic concurrency token.
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration IsConcurrencyToken (Nullable<bool> concurrencyToken);
member this.IsConcurrencyToken : Nullable<bool> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function IsConcurrencyToken (concurrencyToken As Nullable(Of Boolean)) As PrimitivePropertyConfiguration
Parameters
Value indicating if the property is a concurrency token or not. Specifying 'null' will remove the concurrency token facet from the property. Specifying 'null' will cause the same runtime behavior as specifying 'false'.
Returns
The same PrimitivePropertyConfiguration instance so that multiple calls can be chained.
Applies to
Entity Framework