다음을 통해 공유


IDbTransactionInterceptor.TransactionUsed 메서드

정의

가 호출된 직후 RelationalDatabaseFacadeExtensions.UseTransaction 호출됩니다.

public System.Data.Common.DbTransaction TransactionUsed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Data.Common.DbTransaction result);
public virtual System.Data.Common.DbTransaction TransactionUsed (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData eventData, System.Data.Common.DbTransaction result);
abstract member TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
abstract member TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
override this.TransactionUsed : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData * System.Data.Common.DbTransaction -> System.Data.Common.DbTransaction
Public Function TransactionUsed (connection As DbConnection, eventData As TransactionEventData, result As DbTransaction) As DbTransaction
Public Overridable Function TransactionUsed (connection As DbConnection, eventData As TransactionEventData, result As DbTransaction) As DbTransaction

매개 변수

connection
DbConnection

연결입니다.

eventData
TransactionEventData

연결 및 트랜잭션에 대한 컨텍스트 정보입니다.

result
DbTransaction

DbTransaction 에 전달된 RelationalDatabaseFacadeExtensions.UseTransaction입니다. 이 값은 일반적으로이 메서드의 구현에 대 한 반환 값으로 사용 합니다.

반환

결과를 변경하려고 하지 않는 인터셉터에 대해 이 메서드의 구현에 전달된 RelationalDatabaseFacadeExtensions.UseTransaction 유효 값으로 사용되는 값은 전달된 값을 반환 result 하는 것입니다.

적용 대상