Share via


ConventionPrimitivePropertyConfiguration.IsRowVersion Method

Definition

Configures the property to be a row version in the database. The actual data type will vary depending on the database provider being used. Setting the property to be a row version will automatically configure it to be an optimistic concurrency token.

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration IsRowVersion ();
abstract member IsRowVersion : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.IsRowVersion : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function IsRowVersion () 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. This method throws if the property is not a Byte[].

Applies to