다음을 통해 공유


DbCommandTreeInterceptionContext.WithDbContext(DbContext) 메서드

정의

지정된 DbContext를 추가하여 이 가로채기 컨텍스트의 모든 컨텍스트 정보를 포함하는 새 DbCommandTreeInterceptionContext 를 만듭니다.

public System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext WithDbContext (System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.DbCommandTreeInterceptionContext
Public Function WithDbContext (context As DbContext) As DbCommandTreeInterceptionContext

매개 변수

context
DbContext

연결할 컨텍스트입니다.

반환

지정된 컨텍스트와 연결된 새 가로채기 컨텍스트입니다.

적용 대상