C# 클래스 Aspectacular.SqlCmdExecutionPlanAspect

Logs T-SQL execution plan of a SqlCommand.
상속: Aspect
파일 보기 프로젝트 열기: vgribok/Aspectacular

보호된 프로퍼티들

프로퍼티 타입 설명
cmdRetriever SqlCommand>.Func
command System.Data.SqlClient.SqlCommand

공개 메소드들

메소드 설명
SqlCmdExecutionPlanAspect ( SqlCommand>.Func cmdFetcher = null, bool trueText_falseXml = false ) : System

Aspect that log SQL Execution plan of a SqlCommand.

SqlCmdExecutionPlanAspect ( string formatXmlOrText ) : System

Aspect that log SQL Execution plan of an intercepted SqlCommand.

Step_2_BeforeTryingMethodExec ( ) : void

보호된 메소드들

메소드 설명
ProcessExecutionPlan ( string executionPlan ) : void

Do something with the execution plan. Default action is to log it.

비공개 메소드들

메소드 설명
OnConnectionOpened ( ) : void
OnConnectionStateChange ( object sender, StateChangeEventArgs e ) : void

메소드 상세

ProcessExecutionPlan() 보호된 메소드

Do something with the execution plan. Default action is to log it.
protected ProcessExecutionPlan ( string executionPlan ) : void
executionPlan string
리턴 void

SqlCmdExecutionPlanAspect() 공개 메소드

Aspect that log SQL Execution plan of a SqlCommand.
public SqlCmdExecutionPlanAspect ( SqlCommand>.Func cmdFetcher = null, bool trueText_falseXml = false ) : System
cmdFetcher SqlCommand>.Func Optional SqlCommand factory. If not specified, intercepted object should be SqlCommand.
trueText_falseXml bool Specifies output format of the execution plan text: plain text or XML.
리턴 System

SqlCmdExecutionPlanAspect() 공개 메소드

Aspect that log SQL Execution plan of an intercepted SqlCommand.
public SqlCmdExecutionPlanAspect ( string formatXmlOrText ) : System
formatXmlOrText string /// string in the format of "format=text;" or "format=xml;". /// If not specified, XML format is used. ///
리턴 System

Step_2_BeforeTryingMethodExec() 공개 메소드

public Step_2_BeforeTryingMethodExec ( ) : void
리턴 void

프로퍼티 상세

cmdRetriever 보호되어 있는 프로퍼티

protected Func cmdRetriever
리턴 SqlCommand>.Func

command 보호되어 있는 프로퍼티

protected SqlCommand,System.Data.SqlClient command
리턴 System.Data.SqlClient.SqlCommand