From 703d7f2f3027b1383bc6d2634715b4c3bfd8a0e1 Mon Sep 17 00:00:00 2001 From: Martin Kostov Date: Mon, 17 May 2021 08:02:40 +0300 Subject: [PATCH] added documentation --- src/Dapper.Bulk/DapperBulk.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Dapper.Bulk/DapperBulk.cs b/src/Dapper.Bulk/DapperBulk.cs index b23ec25..04e0fef 100644 --- a/src/Dapper.Bulk/DapperBulk.cs +++ b/src/Dapper.Bulk/DapperBulk.cs @@ -25,6 +25,7 @@ public static class DapperBulk /// The transaction to run under, null (the default) if none /// Number of bulk items inserted together, 0 (the default) if all /// Number of seconds before bulk command execution timeout, 30 (the default) + /// Usage of db generated ids. By default DB generated IDs are used (identityInsert=false) public static void BulkInsert(this SqlConnection connection, IEnumerable data, SqlTransaction transaction = null, int batchSize = 0, int bulkCopyTimeout = 30, bool identityInsert = false) { var type = typeof(T); @@ -41,6 +42,7 @@ public static void BulkInsert(this SqlConnection connection, IEnumerable d /// The transaction to run under, null (the default) if none /// Number of bulk items inserted together, 0 (the default) if all /// Number of seconds before bulk command execution timeout, 30 (the default) + /// Usage of db generated ids. By default DB generated IDs are used (identityInsert=false) public static void BulkInsert(this SqlConnection connection, Type type, IEnumerable data, SqlTransaction transaction = null, int batchSize = 0, int bulkCopyTimeout = 30, bool identityInsert = false) { var tableName = TableMapper.GetTableName(type); @@ -86,6 +88,7 @@ public static void BulkInsert(this SqlConnection connection, Type type, IEnumera /// The transaction to run under, null (the default) if none /// Number of bulk items inserted together, 0 (the default) if all /// Number of seconds before bulk command execution timeout, 30 (the default) + /// Usage of db generated ids. By default DB generated IDs are used (identityInsert=false) /// Inserted entities public static IEnumerable BulkInsertAndSelect(this SqlConnection connection, IEnumerable data, SqlTransaction transaction = null, int batchSize = 0, int bulkCopyTimeout = 30, bool identityInsert = false) { @@ -154,6 +157,7 @@ public static IEnumerable BulkInsertAndSelect(this SqlConnection connectio /// The transaction to run under, null (the default) if none /// Number of bulk items inserted together, 0 (the default) if all /// Number of seconds before bulk command execution timeout, 30 (the default) + /// Usage of db generated ids. By default DB generated IDs are used (identityInsert=false) public static async Task BulkInsertAsync(this SqlConnection connection, IEnumerable data, SqlTransaction transaction = null, int batchSize = 0, int bulkCopyTimeout = 30, bool identityInsert = false) { var type = typeof(T); @@ -201,6 +205,7 @@ await connection.ExecuteAsync($@" /// The transaction to run under, null (the default) if none /// Number of bulk items inserted together, 0 (the default) if all /// Number of seconds before bulk command execution timeout, 30 (the default) + /// Usage of db generated ids. By default DB generated IDs are used (identityInsert=false) /// Inserted entities public static async Task> BulkInsertAndSelectAsync(this SqlConnection connection, IEnumerable data, SqlTransaction transaction = null, int batchSize = 0, int bulkCopyTimeout = 30, bool identityInsert = false) {