DateTimePropertyConfiguration.IsConcurrencyToken Method

 

Configures the property to be used as an optimistic concurrency token.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodIsConcurrencyToken()

Configures the property to be used as an optimistic concurrency token.

System_CAPS_pubmethodIsConcurrencyToken(Nullable<Boolean>)

Configures whether or not the property is to be used as an optimistic concurrency token.


DateTimePropertyConfiguration.IsConcurrencyToken Method ()

Configures the property to be used as an optimistic concurrency token.

public DateTimePropertyConfiguration IsConcurrencyToken()

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration

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


DateTimePropertyConfiguration.IsConcurrencyToken Method (Nullable<Boolean>)

Configures whether or not the property is to be used as an optimistic concurrency token.

public DateTimePropertyConfiguration IsConcurrencyToken(
	Nullable<bool> concurrencyToken
)

Parameters

concurrencyToken
Type: System.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'.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration

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