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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SABulkCopyColumnMappingCollection 类 » Add 方法

 

Add(String, Int32) 方法

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

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

语法
Visual Basic

Public Function Add( _
   ByVal sourceColumn As String, _
   ByVal destinationColumnOrdinal As Integer _
) As SABulkCopyColumnMapping
C#

public SABulkCopyColumnMapping Add(
   string  sourceColumn,
   int destinationColumnOrdinal
);
参数
  • sourceColumn   源列在数据源内的名称。

  • destinationColumnOrdinal   目标列在目标表内的顺序位置。

注释

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

另请参见