Link Search Menu Expand Document

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

NameDescription
SapHanaCommandBatcherWrites through SapHanaCommandBatcher, a HanaCommand-based row batcher, giving genuine asynchronous execution — HanaBulkCopy itself has no native async API. This is the default.
AsyncOverSyncWrites 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 HanaBulkCopy directly, regardless of this setting — it only affects the Async overloads.

Usability

Set the value on a SapHanaBulkDbSetting instance and register it via DbSettingMapper.

DbSettingMapper.Add<HanaConnection>(
    new SapHanaBulkDbSetting { WriteToServerExecution = SapHanaWriteToServerExecution.AsyncOverSync },
    true);