SapHanaWriteToServerExecution
This enum defines how the Async overloads of the RepoDb.SapHana.BulkOperations operations write rows to the server. It is read from SapHanaBulkDbSetting.WriteToServerExecution, which is not registered by default.
Enum Values
| Name | Description |
|---|---|
| SapHanaCommandBatcher | Writes through SapHanaCommandBatcher, a HanaCommand-based row batcher, giving genuine asynchronous execution — HanaBulkCopy itself has no native async API. This is the default. |
| AsyncOverSync | Writes through the same synchronous HanaBulkCopy-based path the sync overloads use, called from within the Async overload rather than through SapHanaCommandBatcher. |
The sync overloads always use
HanaBulkCopydirectly, regardless of this setting — it only affects theAsyncoverloads.
Usability
Set the value on a SapHanaBulkDbSetting instance and register it via DbSettingMapper.
DbSettingMapper.Add<HanaConnection>(
new SapHanaBulkDbSetting { WriteToServerExecution = SapHanaWriteToServerExecution.AsyncOverSync },
true);