PropertyBuilder.IsRowVersion Method

Definition

Configures the property as ValueGeneratedOnAddOrUpdate() and IsConcurrencyToken(Boolean).

Database providers can choose to interpret this in different way, but it is commonly used to indicate some form of automatic row-versioning as used for optimistic concurrency detection.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder IsRowVersion ();
abstract member IsRowVersion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
override this.IsRowVersion : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
Public Overridable Function IsRowVersion () As PropertyBuilder

Returns

PropertyBuilder

The same builder instance so that multiple configuration calls can be chained.

Applies to