Gets the automatically generated ULCommand object required to perform deletions on the database.
Public Shadows Function GetDeleteCommand(
ByVal useColumnsForParameterNames As Boolean
) As ULCommand
public new ULCommand GetDeleteCommand(bool useColumnsForParameterNames)
useColumnsForParameterNames If true, generate parameter names matching column names if possible. If false, generate @p1, @p2, and so on.
The automatically generated ULCommand object required to perform deletions.
InvalidOperationException The DbCommandBuilder.DataAdapter property has not been initialized.The DataAdapter.SelectCommand property has not been initialized.The DataAdapter.SelectCommand.Connection property has not been initialized.Dynamic SQL generation is not supported against multiple base tables.Dynamic SQL generation is not supported against a SelectCommand value that contains duplicate columns.Dynamic SQL generation for the DeleteCommand property is not supported against a SelectCommand value that does not return any key column information.
After the SQL statement is first generated, the application must explicitly call the DbCommandBuilder.RefreshSchema method if it changes the ULDataAdapter.SelectCommand value in any way. Otherwise, the GetDeleteCommand method still uses 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 GetDeleteCommand methods.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |