identityColumn property

MssqlColumnSchema? get identityColumn

The identity column, if the table has one.

Implementation

MssqlColumnSchema? get identityColumn =>
    columns.firstWhereOrNull((c) => c.isIdentity);