applyIdentity property
Puts a server-generated identity value back into a row.
Needed only by MssqlInsertStrategy.scopeIdentity, where the insert
returns the key alone and the rest of the row is what the caller already
had. Generated code supplies (row, id) => row.copyWith(id: id as int);
the runtime cannot write it because only the generated class knows which
field the identity column is.
Implementation
final TRow Function(TRow row, Object? identity)? applyIdentity;