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) » SADataAdapter 类

 

InsertCommand 属性

指定在调用 Update 方法来向数据库中添加与 DataSet 中插入的行对应的行时对数据库执行的 SACommand。

语法
Visual Basic

Public Property InsertCommand As SACommand
C#

public SACommand InsertCommand { get; set; }
注释

SACommandBuilder 不需要键列便可生成 InsertCommand。

将 InsertCommand 指派给现有 SACommand 对象时,不会复制 SACommand。InsertCommand 会保留对现有 SACommand 的引用。

如果此命令返回行,这些行可能会添加到 DataSet 中,具体视 SACommand 对象 UpdatedRowSource 属性的设置而定。

另请参见