Skip to main content

Function: RowVersion()

RowVersion(options?): PropertyDecorator

Defined in: src/decorators/Version.ts:65

Alias for @Version() configured with the sequential numeric strategy.

Parameters​

ParameterTypeDescription
options?string | { name?: string; }Column naming options.

Returns​

PropertyDecorator

Usecase​

Standard sequential row versioning for optimistic concurrency.

Example​

@RowVersion()
rowVersion!: number;