Skip to content

DmBulkOptions ​

Namespace: MJCZone.DapperMatic.Dml

Assembly: MJCZone.DapperMatic

Summary ​

How rows are loaded in bulk.

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (3)

Constructors ​

DmBulkOptions ​

csharp
DmBulkOptions()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

BatchSize ​

Gets the most rows sent to the server at a time: SQL Server's bulk copy batch size, and the rows per statement of the multi-row <c>VALUES</c> fallback. 0 leaves it to the provider.

Type: int

Timeout ​

Gets how long a bulk load may take, or null for no limit. SQL Server's bulk copy stops after 30 seconds unless told otherwise, which a large load easily exceeds.

Type: TimeSpan?

Fallback ​

Gets what to do when the provider's native bulk path is unavailable: MySql.Data has none, and MySqlConnector's needs <c>AllowLoadLocalInfile=true</c> and the server's <c>local_infile</c>.

Type: DmBulkFallback