rowVersionColumn property

MssqlBoundColumn? get rowVersionColumn

The rowversion/timestamp column, if the table has one.

Optimistic concurrency is this column or nothing. A table without one has no token to put in a WHERE, and expectedVersion is refused.

Implementation

MssqlBoundColumn? get rowVersionColumn =>
    columns.firstWhereOrNull((c) => c.isRowVersion);