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

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 2.0 API Reference » ULCommandBuilder class » GetUpdateCommand methods

GetUpdateCommand methods Next Page

GetUpdateCommand(Boolean) method


Gets the automatically generated ULCommand object required to perform updates on the database.

Syntax

Visual Basic

Public Function GetUpdateCommand( _
ByVal useColumnsForParameterNames As Boolean _
) As ULCommand

C#

public ULCommand GetUpdateCommand(
bool useColumnsForParameterNames
);

Parameters
Return value

The automatically generated ULCommand object required to perform updates.

Remarks

After the SQL statement is first generated, the application must explicitly call the DbCommandBuilder.RefreshSchema if it changes the ULDataAdapter.SelectCommand in any way. Otherwise, the GetUpdateCommand method will still be using information from the previous statement, which might not be correct. The SQL statements are first generated when the application calls either the DbDataAdapter.Update(System.Data.DataSet) or the GetUpdateCommand method.

See also