ConventionPrimitivePropertyConfiguration.IsConcurrencyToken Method
Configures the property to be used as an optimistic concurrency token.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | IsConcurrencyToken() | Configures the property to be used as an optimistic concurrency token. |
![]() | IsConcurrencyToken(Boolean) | Configures whether or not the property is to be used as an optimistic concurrency token. |
ConventionPrimitivePropertyConfiguration.IsConcurrencyToken Method ()
Configures the property to be used as an optimistic concurrency token.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfigurationThe same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.
ConventionPrimitivePropertyConfiguration.IsConcurrencyToken Method (Boolean)
Configures whether or not the property is to be used as an optimistic concurrency token.
public virtual ConventionPrimitivePropertyConfiguration IsConcurrencyToken( bool concurrencyToken )
Parameters
- concurrencyToken
-
Type:
System.Boolean
Value indicating if the property is a concurrency token or not.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfigurationThe same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured.