ConventionEntityTypeExtensions.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.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression queryFilter, bool fromDataAnnotation = false);
public static System.Linq.Expressions.LambdaExpression SetQueryFilter (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Linq.Expressions.LambdaExpression queryFilter, bool fromDataAnnotation = false);
static member SetQueryFilter : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Linq.Expressions.LambdaExpression * bool -> unit
static member SetQueryFilter : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Linq.Expressions.LambdaExpression * bool -> System.Linq.Expressions.LambdaExpression
<Extension()>
Public Sub SetQueryFilter (entityType As IConventionEntityType, queryFilter As LambdaExpression, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetQueryFilter (entityType As IConventionEntityType, queryFilter As LambdaExpression, Optional fromDataAnnotation As Boolean = false) As LambdaExpression
Parameters
- entityType
- IConventionEntityType
The entity type.
- queryFilter
- LambdaExpression
The LINQ expression filter.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured filter.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor