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 参考 » ULCommandBuilder 类 » GetUpdateCommand 方法

 

GetUpdateCommand() 方法

获取自动生成的、执行数据库更新操作所需的 ULCommand 对象。

语法
Visual Basic
Public Function GetUpdateCommand() As ULCommand
C#
public ULCommand GetUpdateCommand();
返回值

自动生成的、执行更新操作所需的 ULCommand 对象。

注释

首先生成 SQL 语句后,如果应用程序以任何方式对 ULDataAdapter.SelectCommand 进行了更改,则它必须显式调用 DbCommandBuilder.RefreshSchema。否则,GetUpdateCommand 方法会继续使用来自上一条语句的信息,而该信息可能是不正确的。当应用程序调用 DbDataAdapter.Update(System.Data.DataSet) 或 GetUpdateCommand 方法时,会首先生成 SQL 语句。

另请参见