RelationalQueryModelVisitor.ShouldApplyDefiningQuery Method

Definition

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

public override bool ShouldApplyDefiningQuery (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Remotion.Linq.Clauses.IQuerySource querySource);
override this.ShouldApplyDefiningQuery : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Remotion.Linq.Clauses.IQuerySource -> bool
Public Overrides 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