C# Class Rock.Data.QueryHintDbCommandInterceptor

Used with Rock.Data.HintScope, appends a Query Hint to SQL statements executed within the HintScope some of this comes from http://stackoverflow.com/a/26762756/1755417
Inheritance: System.Data.Entity.Infrastructure.Interception.DbCommandInterceptor
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
QueryHintDbCommandInterceptor ( Rock dbContext, QueryHintType hintType ) : System.Data.Entity.Infrastructure.Interception

Initializes a new instance of the QueryHintDbCommandInterceptor class.

QueryHintDbCommandInterceptor ( Rock dbContext, string hint ) : System.Data.Entity.Infrastructure.Interception

Initializes a new instance of the QueryHintDbCommandInterceptor class.

ReaderExecuting ( System command, DbCommandInterceptionContext interceptionContext ) : void

Method Details

QueryHintDbCommandInterceptor() public method

Initializes a new instance of the QueryHintDbCommandInterceptor class.
public QueryHintDbCommandInterceptor ( Rock dbContext, QueryHintType hintType ) : System.Data.Entity.Infrastructure.Interception
dbContext Rock The database context.
hintType QueryHintType Type of the hint.
return System.Data.Entity.Infrastructure.Interception

QueryHintDbCommandInterceptor() public method

Initializes a new instance of the QueryHintDbCommandInterceptor class.
public QueryHintDbCommandInterceptor ( Rock dbContext, string hint ) : System.Data.Entity.Infrastructure.Interception
dbContext Rock The database context.
hint string The hint.
return System.Data.Entity.Infrastructure.Interception

ReaderExecuting() public method

public ReaderExecuting ( System command, DbCommandInterceptionContext interceptionContext ) : void
command System
interceptionContext DbCommandInterceptionContext
return void