DbTransactionInterceptionContext.WithConnection(DbConnection) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 DbConnection를 추가하여 이 가로채기 컨텍스트의 모든 컨텍스트 정보를 포함하는 새 DbTransactionInterceptionContext 를 만듭니다.
public System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext WithConnection(System.Data.Common.DbConnection connection);
member this.WithConnection : System.Data.Common.DbConnection -> System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext
Public Function WithConnection (connection As DbConnection) As DbTransactionInterceptionContext
매개 변수
- connection
- DbConnection
트랜잭션이 시작된 연결입니다.
반환
트랜잭션이 시작된 연결도 포함하는 새 가로채기 컨텍스트입니다.