다음을 통해 공유


RelationalDatabaseFacadeExtensions.UseTransaction 메서드

정의

오버로드

UseTransaction(DatabaseFacade, DbTransaction)

DbTransaction 데이터베이스 작업에서 사용할 을 DbContext설정합니다.

UseTransaction(DatabaseFacade, DbTransaction, Guid)

DbTransaction 데이터베이스 작업에서 사용할 을 DbContext설정합니다.

UseTransaction(DatabaseFacade, DbTransaction)

Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs

DbTransaction 데이터베이스 작업에서 사용할 을 DbContext설정합니다.

public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction transaction);
public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction? transaction);
static member UseTransaction : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Data.Common.DbTransaction -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
<Extension()>
Public Function UseTransaction (databaseFacade As DatabaseFacade, transaction As DbTransaction) As IDbContextTransaction

매개 변수

databaseFacade
DatabaseFacade

DatabaseFacade 컨텍스트에 대한 입니다.

transaction
DbTransaction

사용할 DbTransaction입니다.

반환

IDbContextTransaction 지정된 트랜잭션을 캡슐화하는 입니다.

설명

자세한 내용 및 예제는 EF Core의 트랜잭션 을 참조하세요.

적용 대상

UseTransaction(DatabaseFacade, DbTransaction, Guid)

Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs
Source:
RelationalDatabaseFacadeExtensions.cs

DbTransaction 데이터베이스 작업에서 사용할 을 DbContext설정합니다.

public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction transaction, Guid transactionId);
public static Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction? UseTransaction (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade, System.Data.Common.DbTransaction? transaction, Guid transactionId);
static member UseTransaction : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade * System.Data.Common.DbTransaction * Guid -> Microsoft.EntityFrameworkCore.Storage.IDbContextTransaction
<Extension()>
Public Function UseTransaction (databaseFacade As DatabaseFacade, transaction As DbTransaction, transactionId As Guid) As IDbContextTransaction

매개 변수

databaseFacade
DatabaseFacade

DatabaseFacade 컨텍스트에 대한 입니다.

transaction
DbTransaction

사용할 DbTransaction입니다.

transactionId
Guid

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

반환

IDbContextTransaction 지정된 트랜잭션을 캡슐화하는 입니다.

설명

자세한 내용 및 예제는 EF Core의 트랜잭션 을 참조하세요.

적용 대상