DbCommandInterceptor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class that implements IDbCommandInterceptor. This class is a convenience for use when only one or two methods of the interface actually need to have any implementation.
public class DbCommandInterceptor : System.Data.Entity.Infrastructure.Interception.IDbCommandInterceptor
type DbCommandInterceptor = class
interface IDbCommandInterceptor
interface IDbInterceptor
Public Class DbCommandInterceptor
Implements IDbCommandInterceptor
- Inheritance
-
DbCommandInterceptor
- Implements
Constructors
DbCommandInterceptor() |
Methods
NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) |
This method is called after a call to ExecuteNonQuery() or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result. |
NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>) |
This method is called before a call to ExecuteNonQuery() or one of its async counterparts is made. |
ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) |
This method is called after a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result. |
ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) |
This method is called before a call to ExecuteReader(CommandBehavior) or one of its async counterparts is made. |
ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) |
This method is called after a call to ExecuteScalar() or one of its async counterparts is made. The result used by Entity Framework can be changed by setting Result. |
ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) |
This method is called before a call to ExecuteScalar() or one of its async counterparts is made. |
Applies to
Entity Framework