共用方式為


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。

適用於