<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.1" />

Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping

public sealed class SqlBulkCopyColumnMapping
Defines the mapping between a column in a SqlBulkCopy instance's data source and a column in the instance's destination table.
public string DestinationColumn { get; set; }

Name of the column being mapped in the destination database table.

public int DestinationOrdinal { get; set; }

Ordinal value of the destination column within the destination table.

public string SourceColumn { get; set; }

Name of the column being mapped in the data source.

public int SourceOrdinal { get; set; }

The ordinal position of the source column within the data source.

Parameterless constructor that initializes a new SqlBulkCopyColumnMapping object.

public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, int destinationOrdinal)

public SqlBulkCopyColumnMapping(int sourceColumnOrdinal, string destinationColumn)

Creates a new column mapping, using a column ordinal to refer to the source column and a column name for the target column.

public SqlBulkCopyColumnMapping(string sourceColumn, int destinationOrdinal)

public SqlBulkCopyColumnMapping(string sourceColumn, string destinationColumn)