Link Search Menu Expand Document

SapHanaBulkDbSetting


This class extends SapHanaDbSetting with a WriteToServerExecution property that controls how the Async overloads of the RepoDb.SapHana.BulkOperations operations write rows to the server.

Unlike SapHanaDbSetting, it is not registered automatically — SapHanaBootstrap maps the base SapHanaDbSetting by default. Register this class yourself via DbSettingMapper only if you need to override the default write strategy.

Properties

NameDescription
WriteToServerExecutionA SapHanaWriteToServerExecution value that controls how the bulk operations’ Async overloads write rows to the server. Defaults to SapHanaCommandBatcher.

Usability

Register it in place of the default SapHanaDbSetting to opt into the AsyncOverSync write strategy.

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

Register this after UseSapHana() so it overrides the SapHanaDbSetting mapping that call sets up.