Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回事务对象。
Public Shadows Function BeginTransaction( ByVal isolationLevel As IsolationLevel ) As SATransaction
public new SATransaction BeginTransaction(IsolationLevel isolationLevel)
isolationLevel SAIsolationLevel 枚举的一个成员。缺省值为 ReadCommitted。
表示新事务的 SATransaction 对象。
将与事务对象关联的命令作为单个事务执行。通过调用 Commit 或 Rollback 方法终止事务。
若要将命令与事务对象关联,请使用 SACommand.Transaction 属性。
SATransaction tx = conn.BeginTransaction( SAIsolationLevel.ReadUncommitted );