MutableEntityTypeExtensions.SetQueryFilter Method
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.
Sets the LINQ expression filter automatically applied to queries for this entity type.
public static void SetQueryFilter (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Linq.Expressions.LambdaExpression queryFilter);
static member SetQueryFilter : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Linq.Expressions.LambdaExpression -> unit
<Extension()>
Public Sub SetQueryFilter (entityType As IMutableEntityType, queryFilter As LambdaExpression)
Parameters
- entityType
- IMutableEntityType
The entity type.
- queryFilter
- LambdaExpression
The LINQ expression filter.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework