updateManyKeyed method
Staging JOIN update of patches by their keys.
Carries this query's scope predicates, so a keyed batch update reaches
exactly the rows a single-row update() on the same query would: not
another tenant's, and not a soft-deleted one unless withTrashed()
asked for it.
Implementation
Future<int> updateManyKeyed(
List<MssqlKeyedPatch> patches, {
int? expectAffected,
}) async {
final dialect = await _resolvedDialect();
return _bulkWriter(
dialect,
).updateMany(patches, expectAffected: expectAffected);
}