DateTimePropertyConfiguration.IsConcurrencyToken Method

Definition

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.DateTimePropertyConfiguration IsConcurrencyToken ();
override this.IsConcurrencyToken : unit -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function IsConcurrencyToken () As DateTimePropertyConfiguration

Returns

DateTimePropertyConfiguration

The same DateTimePropertyConfiguration 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.DateTimePropertyConfiguration IsConcurrencyToken (Nullable<bool> concurrencyToken);
override this.IsConcurrencyToken : Nullable<bool> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function IsConcurrencyToken (concurrencyToken As Nullable(Of Boolean)) As DateTimePropertyConfiguration

Parameters

concurrencyToken
Nullable<Boolean>

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

DateTimePropertyConfiguration

The same DateTimePropertyConfiguration instance so that multiple calls can be chained.

Applies to