다음을 통해 공유


IRelationalTransactionManager.UseTransaction 메서드

정의

오버로드

UseTransaction(DbTransaction)

데이터베이스 작업에 사용할 기존 DbTransaction 을 지정합니다.

UseTransaction(DbTransaction, Guid)

데이터베이스 작업에 사용할 기존 DbTransaction 을 지정합니다.

UseTransaction(DbTransaction)

Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs

데이터베이스 작업에 사용할 기존 DbTransaction 을 지정합니다.

public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction);
public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction);
abstract member UseTransaction : System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Function UseTransaction (transaction As DbTransaction) As IDbContextTransaction

매개 변수

transaction
DbTransaction

사용할 트랜잭션입니다.

반환

제공된 트랜잭션을 래핑하는 의 IDbTransaction instance.

적용 대상

UseTransaction(DbTransaction, Guid)

Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs
Source:
IRelationalTransactionManager.cs

데이터베이스 작업에 사용할 기존 DbTransaction 을 지정합니다.

public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (System.Data.Common.DbTransaction transaction, Guid transactionId);
public Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (System.Data.Common.DbTransaction? transaction, Guid transactionId);
abstract member UseTransaction : System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
Public Function UseTransaction (transaction As DbTransaction, transactionId As Guid) As IDbContextTransaction

매개 변수

transaction
DbTransaction

사용할 트랜잭션입니다.

transactionId
Guid

트랜잭션의 고유 식별자입니다.

반환

제공된 트랜잭션을 래핑하는 의 IDbTransaction instance.

적용 대상