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
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Data.Entity.Infrastructure.Interception

QueryHintDbCommandInterceptor() public méthode

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.
Résultat System.Data.Entity.Infrastructure.Interception

ReaderExecuting() public méthode

public ReaderExecuting ( System command, DbCommandInterceptionContext interceptionContext ) : void
command System
interceptionContext DbCommandInterceptionContext
Résultat void