Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULTransaction 类

 

Commit 方法

提交数据库事务。

语法
Visual Basic
Public Overrides Sub Commit()
C#
public override void Commit();
注释

提交或回退事务后,连接恢复为在执行操作时自动提交所有操作。要将更多操作组合在一起,必须创建一个新事务。

如果由于数据库错误(例如,参照完整性错误)而导致 Commit() 失败,则事务会保持活动状态。更正错误并再次调用 Commit() 方法或调用 ULTransaction.Rollback() 以完成事务。

另请参见