Db2BulkArrayBinderColumnMappingCollection
This class is a Collection<Db2BulkInsertMapItem> used to define the source-to-destination column mappings of a Db2BulkArrayBinder, mirroring the shape of DB2BulkCopyColumnMappingCollection.
It backs Db2BulkArrayBinder’s ColumnMappings property. Its Add(sourceColumn, destinationColumn) overload creates and appends a Db2BulkInsertMapItem; an explicit DB2Type for a mapping can instead be added directly via the base Collection<T>.Add(Db2BulkInsertMapItem).
Usability
using var arrayBinder = new Db2BulkArrayBinder(connection)
{
DestinationTableName = "Person"
};
arrayBinder.ColumnMappings.Add("FirstName", "FName");
arrayBinder.ColumnMappings.Add("LastName", "LName");
arrayBinder.ColumnMappings.Add(new Db2BulkInsertMapItem("Age", "Age", DB2Type.Integer));
When
ColumnMappingsis left empty, Db2BulkArrayBinder maps every source column to a destination column of the same name.