QueryFilterRewritingConvention 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.
Convention that converts accesses of DbSet<TEntity> inside query filters into EntityQueryRootExpression. This makes them consistent with how DbSet accesses in the actual queries are represented, which allows for easier processing in the query pipeline.
public class QueryFilterRewritingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type QueryFilterRewritingConvention = class
interface IModelFinalizingConvention
interface IConvention
Public Class QueryFilterRewritingConvention
Implements IModelFinalizingConvention
- Inheritance
-
QueryFilterRewritingConvention
- Derived
- Implements
Remarks
See Model building conventions for more information and examples.
Constructors
QueryFilterRewritingConvention(ProviderConventionSetBuilderDependencies) |
Creates a new instance of QueryFilterRewritingConvention. |
Properties
DbSetAccessRewriter |
Visitor used to rewrite DbSet<TEntity> accesses encountered in query filters to EntityQueryRootExpression. |
Dependencies |
Dependencies for this service. |
Methods
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called when a model is being finalized. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for