DecimalPropertyConfiguration.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.


DecimalPropertyConfiguration.IsConcurrencyToken Method ()

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

public DecimalPropertyConfiguration IsConcurrencyToken()

Return Value

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

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


DecimalPropertyConfiguration.IsConcurrencyToken Method (Nullable<Boolean>)

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

public DecimalPropertyConfiguration 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.DecimalPropertyConfiguration

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