Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULBulkCopyColumnMappingCollection 类 » Add 方法

 

Add(String, Int32) 方法

通过使用列名引用源列和使用列顺序号引用目标列来创建新的 ULBulkCopyColumnMapping,并将该映射添加到集合中。

通过使用列顺序号或列名引用源列和目标列来创建新的列映射。

语法
Visual Basic
Public Function Add( _
   ByVal sourceColumn As String, _
   ByVal destinationColumnOrdinal As Integer _
) As ULBulkCopyColumnMapping
C#
public ULBulkCopyColumnMapping Add(
   string  sourceColumn,
   int destinationColumnOrdinal
);
参数
  • sourceColumn   源列在数据源内的名称。

  • destinationColumnOrdinal   目标列在目标表内的顺序位置。表中第一列的顺序位置为零。

注释

Restrictions: 无法在 .NET Compact Framework 2.0 中使用 ULBulkCopyColumnMappingCollection 类。

另请参见