다음을 통해 공유


DbConnectionDispatcher.GetDatabase 메서드

정의

public virtual string GetDatabase(System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext);
abstract member GetDatabase : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> string
override this.GetDatabase : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> string
Public Overridable Function GetDatabase (connection As DbConnection, interceptionContext As DbInterceptionContext) As String

매개 변수

connection
DbConnection

작업이 실행될 연결입니다.

interceptionContext
DbInterceptionContext

호출의 컨텍스트에 대한 선택적 정보입니다.

반환

인터셉터에 의해 수정되었을 수 있는 작업의 결과입니다.

설명

속성의 값은 이 메서드에서 반환됩니다. 인터셉터에 전달되기 전에 가로채기 컨텍스트가 복제되므로 이 메서드에 전달된 가로채기 컨텍스트에서는 결과를 사용할 수 없습니다.

적용 대상