Share via


EntityQueryModelVisitor.ShouldApplyDefiningQuery Method

Definition

Determine whether a defining query should be applied when querying the target entity type.

public virtual bool ShouldApplyDefiningQuery (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Remotion.Linq.Clauses.IQuerySource querySource);
abstract member ShouldApplyDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Remotion.Linq.Clauses.IQuerySource -> bool
override this.ShouldApplyDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Remotion.Linq.Clauses.IQuerySource -> bool
Public Overridable Function ShouldApplyDefiningQuery (entityType As IEntityType, querySource As IQuerySource) As Boolean

Parameters

entityType
IEntityType

The target entity type.

querySource
Remotion.Linq.Clauses.IQuerySource

The target query source.

Returns

true if the target type should have a defining query applied.

Applies to