Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IDbCommandInterceptor Interface
Definition
- Namespace:
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly:
- Microsoft.EntityFrameworkCore.Relational.dll
- Package:
- Microsoft.EntityFrameworkCore.Relational v10.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v3.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v3.1.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v5.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v6.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v7.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v8.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v9.0.0
- Source:
- IDbCommandInterceptor.cs
- Source:
- IDbCommandInterceptor.cs
- Source:
- IDbCommandInterceptor.cs
- Source:
- IDbCommandInterceptor.cs
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.
Allows interception of commands sent to a relational database.
public interface IDbCommandInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor
type IDbCommandInterceptor = interface
interface IInterceptor
Public Interface IDbCommandInterceptor
Implements IInterceptor
- Derived
- Implements
Remarks
Command interceptors can be used to view, change, or suppress execution of the DbCommand, and to modify the result before it is returned to EF.
Consider inheriting from DbCommandInterceptor if not implementing all methods.
Use AddInterceptors(IInterceptor[]) to register application interceptors.
Extensions can also register interceptors in the internal service provider. If both injected and application interceptors are found, then the injected interceptors are run in the order that they are resolved from the service provider, and then the application interceptors are run last.
See EF Core interceptors for more information and examples.
Methods
Applies to
Entity Framework
Feedback
Was this page helpful?
