EntityQueryModelVisitor.ShouldApplyDefiningQuery 方法

定义

确定在查询目标实体类型时是否应应用定义查询。

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

参数

entityType
IEntityType

目标实体类型。

querySource
Remotion.Linq.Clauses.IQuerySource

目标查询源。

返回

如果目标类型应应用定义查询,则为 true。

适用于