Skip to content

Commit 90055a4

Browse files
Add a comment for the batcher implementation
1 parent 9566ee4 commit 90055a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/NHibernate/AdoNet/HanaBatchingBatcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ protected override void DoExecuteBatch(DbCommand ps)
9696

9797
foreach (var command in _currentBatchCommands)
9898
{
99+
// Batching with HANA works by simply defining multiple times each command parameter.
100+
// (Undocumented feature explained by a developer of the provider.)
99101
foreach (DbParameter parameter in command.Parameters)
100102
{
101103
_currentBatch.Parameters.Add(parameter);

src/NHibernate/Async/AdoNet/HanaBatchingBatcher.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ protected override async Task DoExecuteBatchAsync(DbCommand ps, CancellationToke
9696

9797
foreach (var command in _currentBatchCommands)
9898
{
99+
// Batching with HANA works by simply defining multiple times each command parameter.
100+
// (Undocumented feature explained by a developer of the provider.)
99101
foreach (DbParameter parameter in command.Parameters)
100102
{
101103
_currentBatch.Parameters.Add(parameter);

0 commit comments

Comments
 (0)