MariaDbBulkOperationsDbSetting
A setting class used for the MySqlConnector-based MariaDb data provider, extended with the settings of the bulk operations.
This class extends MariaDbDbSetting with the settings of the bulk operations (bulk-insert, bulk-merge, bulk-update and bulk-delete) for the MySqlConnector-based RepoDb.MariaDbConnector package, and inherits all of its configured values. Pass an instance to MariaDbGlobalConfiguration’s UseMariaDbConnector method to register it in place of the default setting.
Properties
| Name | Description |
|---|---|
| BulkColumnMappingsBehavior | Gets or sets the MariaDbBulkColumnMappingsBehavior value that defines how the columns of the source are aligned with the columns of the destination table when no explicit mappings were passed to a bulk operation. Explicit mappings always take precedence over this setting. The default value is Automatic. |
Usability
GlobalConfiguration
.Setup()
.UseMariaDbConnector(new MariaDbBulkOperationsDbSetting
{
BulkColumnMappingsBehavior = MariaDbBulkColumnMappingsBehavior.Strict
});
MariaDb ships an identically-named class of its own (in a different namespace) for the
MySql.Data-based package — the two are unrelated types and are not interchangeable.