Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定在调用 Update 方法来删除数据库中与 DataSet 中已删除的行对应的行时对数据库执行的 SACommand 对象。
Public Shadows Property DeleteCommand As SACommand
public new SACommand DeleteCommand {get;set;}
如果 Update 过程中未设置此属性,且 DataSet 中具有主键信息,则可以通过设置 SelectCommand 和使用 SACommandBuilder 来自动生成 DeleteCommand。在这种情况下,SACommandBuilder 会生成您未设置的所有其它命令。此生成逻辑要求 SelectCommand 中存在键列信息。
将 DeleteCommand 指派给现有 SACommand 对象时,不会复制 SACommand 对象。DeleteCommand 会保留对现有 SACommand 的引用。