ConventionPrimitivePropertyConfiguration.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(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 virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration IsConcurrencyToken ();
abstract member IsConcurrencyToken : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.IsConcurrencyToken : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function IsConcurrencyToken () As ConventionPrimitivePropertyConfiguration
Returns
The same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Remarks
Calling this will have no effect once it has been configured.
Applies to
IsConcurrencyToken(Boolean)
Configures whether or not the property is to be used as an optimistic concurrency token.
public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration IsConcurrencyToken (bool concurrencyToken);
abstract member IsConcurrencyToken : bool -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.IsConcurrencyToken : bool -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function IsConcurrencyToken (concurrencyToken As Boolean) As ConventionPrimitivePropertyConfiguration
Parameters
- concurrencyToken
- Boolean
Value indicating if the property is a concurrency token or not.
Returns
The same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Remarks
Calling this will have no effect once it has been configured.
Applies to
Entity Framework