RelationalDbContextOptionsBuilder<TBuilder,TExtension>.MaxBatchSize Method

Definition

Configures the maximum number of statements that will be included in commands sent to the database during SaveChanges().

public virtual TBuilder MaxBatchSize (int maxBatchSize);
abstract member MaxBatchSize : int -> 'Builder
override this.MaxBatchSize : int -> 'Builder
Public Overridable Function MaxBatchSize (maxBatchSize As Integer) As TBuilder

Parameters

maxBatchSize
Int32

The maximum number of statements.

Returns

TBuilder

The same builder instance so that multiple calls can be chained.

Remarks

See Saving data with EF Core for more information and examples.

Applies to