Table of Contents

Class QueryHookCommandInterceptor

Namespace
Z.EntityFramework.Extensions
Assembly
Z.EntityFramework.Extensions.dll

A query hook command interceptor.

public class QueryHookCommandInterceptor : IDbCommandInterceptor, IDbInterceptor
Inheritance
QueryHookCommandInterceptor
Implements
IDbCommandInterceptor
IDbInterceptor
Inherited Members

Constructors

QueryHookCommandInterceptor()

public QueryHookCommandInterceptor()

Methods

HookExecuting(DbCommand, DbContext)

Executes the hook operation.

public void HookExecuting(DbCommand command, DbContext dbContext)

Parameters

command DbCommand

The command.

dbContext DbContext

Context for the database.

Exceptions

Exception

Thrown when an exception error condition occurs.

NonQueryExecuted(DbCommand, DbCommandInterceptionContext<int>)

public void NonQueryExecuted(DbCommand command, DbCommandInterceptionContext<int> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<int>

NonQueryExecuting(DbCommand, DbCommandInterceptionContext<int>)

public void NonQueryExecuting(DbCommand command, DbCommandInterceptionContext<int> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<int>

ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)

public void ReaderExecuted(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<DbDataReader>

ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)

public void ReaderExecuting(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<DbDataReader>

ScalarExecuted(DbCommand, DbCommandInterceptionContext<object>)

public void ScalarExecuted(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<object>

ScalarExecuting(DbCommand, DbCommandInterceptionContext<object>)

public void ScalarExecuting(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)

Parameters

command DbCommand
interceptionContext DbCommandInterceptionContext<object>