Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
从表中删除所有行。
public virtual bool DeleteAllRows()
如果成功,则返回 true。如果失败,则返回 false。例如,表未打开或发生 SQL 错误等等。
在某些应用程序中,您可能需要在将一组新数据下载到表中之前删除表中的所有行。如果连接上设置了 stop sync 属性,则不同步已删除的行。
来自其它连接的任何未提交的插入不会被删除。另外,如果其它连接在其调用 DeleteAllRows() 后执行回退,则来自其它连接的任何未提交的删除也不会被删除。
如果此表未使用索引打开,那么此表将视为只读并且无法删除数据。