Efficiently inserts multiple rows, in batches as necessary.
public static Task<int> BulkInsertAsync<TInsert>(this IDbConnection connection, string sql,
IEnumerable<TInsert> insertParams, IDbTransaction transaction = null, int? batchSize = null, CancellationToken cancellationToken = default(CancellationToken))
Efficiently inserts multiple rows, in batches as necessary.
public static Task<int> BulkInsertAsync<TCommon, TInsert>(this IDbConnection connection, string sql,
TCommon commonParam, IEnumerable<TInsert> insertParams, IDbTransaction transaction = null,
int? batchSize = null, CancellationToken cancellationToken = default(CancellationToken))