Class QueryHookCommandInterceptor
- Namespace
- Z.EntityFramework.Extensions
- Assembly
- Z.EntityFramework.Extensions.dll
A query hook command interceptor.
public class QueryHookCommandInterceptor : IDbCommandInterceptor, IDbInterceptor
- Inheritance
-
QueryHookCommandInterceptor
- Implements
-
IDbCommandInterceptorIDbInterceptor
- Inherited Members
Constructors
QueryHookCommandInterceptor()
public QueryHookCommandInterceptor()
Methods
HookExecuting(DbCommand, DbContext)
Executes the hook operation.
public void HookExecuting(DbCommand command, DbContext dbContext)
Parameters
command
DbCommandThe command.
dbContext
DbContextContext 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
NonQueryExecuting(DbCommand, DbCommandInterceptionContext<int>)
public void NonQueryExecuting(DbCommand command, DbCommandInterceptionContext<int> interceptionContext)
Parameters
ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>)
public void ReaderExecuted(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)
Parameters
command
DbCommandinterceptionContext
DbCommandInterceptionContext<DbDataReader>
ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>)
public void ReaderExecuting(DbCommand command, DbCommandInterceptionContext<DbDataReader> interceptionContext)
Parameters
command
DbCommandinterceptionContext
DbCommandInterceptionContext<DbDataReader>
ScalarExecuted(DbCommand, DbCommandInterceptionContext<object>)
public void ScalarExecuted(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)
Parameters
ScalarExecuting(DbCommand, DbCommandInterceptionContext<object>)
public void ScalarExecuting(DbCommand command, DbCommandInterceptionContext<object> interceptionContext)