Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
获取一条命令,它允许用户将删除操作添加到下载数据操作中。
Public Function GetDeleteCommand() As IDbCommand
public IDbCommand GetDeleteCommand()
下载中用于删除操作的命令。
返回命令的参数数量与该表主键列的参数数量相同。必须设置主键列的列值,并且必须使用 ExecuteNonQuery 执行语句方可将删除包括在下载中。如果删除操作被过滤,则命令中的 ExecuteNonQuery 将返回 0;如果删除操作未被过滤,则将返回 1。
要删除行,您必须为下载删除操作设置所有主键值。要截断远程表,应将所有主键列设置为空。