Gets the Dapper CommandDefinition
s used by BulkInsert
and BulkInsertAsync
.
public static IEnumerable<CommandDefinition> GetBulkInsertCommands<TInsert>(string sql,
IEnumerable<TInsert> insertParams, IDbTransaction transaction = null, int? batchSize = null, CancellationToken cancellationToken = default(CancellationToken))
Gets the Dapper CommandDefinition
s used by BulkInsert
and BulkInsertAsync
.
public static IEnumerable<CommandDefinition> GetBulkInsertCommands<TCommon, TInsert>(string sql,
TCommon commonParam, IEnumerable<TInsert> insertParams, IDbTransaction transaction = null,
int? batchSize = null, CancellationToken cancellationToken = default(CancellationToken))