/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopyColumnMappingCollection.xml' path='docs/members[@name="SqlBulkCopyColumnMappingCollection"]/Add[@name="sourceColumnStringAnddestinationColumnIndexInteger"]/*'/> public SqlBulkCopyColumnMapping Add(string sourceColumn, int destinationColumnIndex) { AssertWriteAccess(); SqlBulkCopyColumnMapping column = new SqlBulkCopyColumnMapping(sourceColumn, destinationColumnIndex); return(Add(column)); }
public SqlBulkCopyColumnMapping Add(SqlBulkCopyColumnMapping bulkCopyColumnMapping) { AssertWriteAccess(); Debug.Assert(ADP.IsEmpty(bulkCopyColumnMapping.SourceColumn) || bulkCopyColumnMapping._internalSourceColumnOrdinal == -1, "BulkLoadAmbigousSourceColumn"); if (((ADP.IsEmpty(bulkCopyColumnMapping.SourceColumn)) && (bulkCopyColumnMapping.SourceOrdinal == -1)) || ((ADP.IsEmpty(bulkCopyColumnMapping.DestinationColumn)) && (bulkCopyColumnMapping.DestinationOrdinal == -1))) { throw SQL.BulkLoadNonMatchingColumnMapping(); } InnerList.Add(bulkCopyColumnMapping); return(bulkCopyColumnMapping); }
public void Remove(SqlBulkCopyColumnMapping value) { AssertWriteAccess(); InnerList.Remove(value); }
public void Insert(int index, SqlBulkCopyColumnMapping value) { AssertWriteAccess(); InnerList.Insert(index, value); }
public int IndexOf(SqlBulkCopyColumnMapping value) { return(InnerList.IndexOf(value)); }
public bool Contains(SqlBulkCopyColumnMapping value) { return(-1 != InnerList.IndexOf(value)); }
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopyColumnMappingCollection.xml' path='docs/members[@name="SqlBulkCopyColumnMappingCollection"]/Contains/*'/> public bool Contains(SqlBulkCopyColumnMapping value) => InnerList.Contains(value);
/// <include file='../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlBulkCopyColumnMappingCollection.xml' path='docs/members[@name="SqlBulkCopyColumnMappingCollection"]/IndexOf/*'/> public int IndexOf(SqlBulkCopyColumnMapping value) => InnerList.IndexOf(value);