diff --git a/src/EFCore.SqlServer/Update/Internal/SqlServerModificationCommandBatch.cs b/src/EFCore.SqlServer/Update/Internal/SqlServerModificationCommandBatch.cs index 3d5bd7ed440..a8425519522 100644 --- a/src/EFCore.SqlServer/Update/Internal/SqlServerModificationCommandBatch.cs +++ b/src/EFCore.SqlServer/Update/Internal/SqlServerModificationCommandBatch.cs @@ -45,7 +45,7 @@ public SqlServerModificationCommandBatch( throw new ArgumentOutOfRangeException(nameof(maxBatchSize), RelationalStrings.InvalidMaxBatchSize); } - _maxBatchSize = Math.Min(maxBatchSize ?? int.MaxValue, MaxRowCount); + _maxBatchSize = Math.Min(maxBatchSize ?? 42, MaxRowCount); } ///