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 错误时返回 false。
在某些应用程序中,您可能需要在将一组新数据下载到表中之前删除表中的所有行。如果连接上设置了停止同步属性,则不同步已删除的行。
来自其它连接的任何未提交的插入不会被删除。如果其它连接在调用 DeleteAllRows 方法后执行回退,则同样不会将其删除。
如果此表未使用索引打开,那么此表将视为只读并且无法删除数据。