Link Search Menu Expand Document

ISapHanaBulkDbSetting


This interface extends IDbSetting with a SAP HANA bulk-operations-specific setting. It ships in RepoDb.SapHana.BulkOperations — not the core RepoDb.SapHana package — and is implemented by SapHanaBulkDbSetting.

Properties

Below is the list of properties, in addition to the ones inherited from IDbSetting.

NameDescription
WriteToServerExecutionA SapHanaWriteToServerExecution value controlling how the bulk operations’ Async overloads write rows to the server.

The internal check that consults this setting is written against the concrete SapHanaBulkDbSetting type, not this interface — subclass SapHanaBulkDbSetting rather than implementing this interface on an unrelated class if you need it honored.

How to Implement?

Subclass SapHanaBulkDbSetting itself, rather than implementing this interface from scratch.

public class MySapHanaBulkDbSetting : SapHanaBulkDbSetting
{
    public MySapHanaBulkDbSetting()
    {
        WriteToServerExecution = SapHanaWriteToServerExecution.AsyncOverSync;
    }
}

Usability

Pass it to UseSapHana(), or map it directly against HanaConnection via DbSettingMapper.

GlobalConfiguration
    .Setup()
    .UseSapHana(new MySapHanaBulkDbSetting());
DbSettingMapper.Add(typeof(HanaConnection), new MySapHanaBulkDbSetting(), true);