OdbcConnection.IDbConnection.BeginTransaction 方法

定义

重载

IDbConnection.BeginTransaction()

此 API 支持产品基础结构,不能在代码中直接使用。

开始一项数据库事务。Begins a database transaction.

IDbConnection.BeginTransaction(IsolationLevel)

此 API 支持产品基础结构,不能在代码中直接使用。

以指定的隔离级别启动数据库事务。Begins a database transaction with the specified isolation level.

IDbConnection.BeginTransaction()

开始一项数据库事务。Begins a database transaction.

此 API 支持产品基础结构,不能在代码中直接使用。

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction() = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction ();
abstract member System.Data.IDbConnection.BeginTransaction : unit -> System.Data.IDbTransaction
override this.System.Data.IDbConnection.BeginTransaction : unit -> System.Data.IDbTransaction
Function BeginTransaction () As IDbTransaction Implements IDbConnection.BeginTransaction

返回

IDbTransaction

表示新事务的对象。An object representing the new transaction.

实现

IDbConnection.BeginTransaction(IsolationLevel)

以指定的隔离级别启动数据库事务。Begins a database transaction with the specified isolation level.

此 API 支持产品基础结构,不能在代码中直接使用。

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction(System::Data::IsolationLevel isolevel) = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction (System.Data.IsolationLevel isolevel);
abstract member System.Data.IDbConnection.BeginTransaction : System.Data.IsolationLevel -> System.Data.IDbTransaction
override this.System.Data.IDbConnection.BeginTransaction : System.Data.IsolationLevel -> System.Data.IDbTransaction
Function BeginTransaction (isolevel As IsolationLevel) As IDbTransaction Implements IDbConnection.BeginTransaction

参数

isolevel
IsolationLevel

指定隔离级别的枚举值的按位组合。A bitwise combination of the enumeration values that specify the isolation level.

返回

IDbTransaction

表示新事务的对象。An object representing the new transaction.

实现

适用于