PropertyBuilder.IsRowVersion 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.
Configures the property as ValueGeneratedOnAddOrUpdate() and IsConcurrencyToken(Boolean).
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
The same builder instance so that multiple configuration calls can be chained.
Remarks
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.
Applies to
Entity Framework