다음을 통해 공유


RelationalConnection.UseTransactionAsync 메서드

정의

오버로드

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

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

UseTransactionAsync(DbTransaction, CancellationToken)

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

UseTransactionAsync(DbTransaction, Guid, CancellationToken)

Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, Guid transactionId, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction?> UseTransactionAsync (System.Data.Common.DbTransaction? transaction, Guid transactionId, System.Threading.CancellationToken cancellationToken = default);
abstract member UseTransactionAsync : System.Data.Common.DbTransaction * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
override this.UseTransactionAsync : System.Data.Common.DbTransaction * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Overridable Function UseTransactionAsync (transaction As DbTransaction, transactionId As Guid, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDbContextTransaction)

매개 변수

transaction
DbTransaction

사용할 트랜잭션입니다.

transactionId
Guid

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

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

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

구현

예외

적용 대상

UseTransactionAsync(DbTransaction, CancellationToken)

Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs
Source:
RelationalConnection.cs

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

public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction> UseTransactionAsync (System.Data.Common.DbTransaction transaction, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction?> UseTransactionAsync (System.Data.Common.DbTransaction? transaction, System.Threading.CancellationToken cancellationToken = default);
abstract member UseTransactionAsync : System.Data.Common.DbTransaction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
override this.UseTransactionAsync : System.Data.Common.DbTransaction * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction>
Public Overridable Function UseTransactionAsync (transaction As DbTransaction, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IDbContextTransaction)

매개 변수

transaction
DbTransaction

사용할 트랜잭션입니다.

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

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

구현

예외

적용 대상