Table of Contents

Class QueryHookExecuting

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

A query hook that apply when a query is executing.

public class QueryHookExecuting : IQueryHook
Inheritance
QueryHookExecuting
Implements
Inherited Members

Constructors

QueryHookExecuting(Action<DbCommand, DbContext>)

Constructor.

public QueryHookExecuting(Action<DbCommand, DbContext> action)

Parameters

action Action<DbCommand, DbContext>

The action to execute.

Fields

Action

The action to execute.

public Action<DbCommand, DbContext> Action

Field Value

Action<DbCommand, DbContext>

Properties

DbContext

public DbContext DbContext { get; set; }

Property Value

DbContext

Methods

Execute(DbCommand, DbContext)

public void Execute(DbCommand command, DbContext dbContext)

Parameters

command DbCommand
dbContext DbContext