共用方式為


QueryCompilationContext.RegisterCorrelatedSubqueryMetadata 方法

定義

註冊相互關聯的集合查詢模型與處理它們所需的中繼資料之間的對應。

public virtual void RegisterCorrelatedSubqueryMetadata (Remotion.Linq.Clauses.MainFromClause mainFromClause, bool trackingQuery, Microsoft.EntityFrameworkCore.Metadata.INavigation firstNavigation, Microsoft.EntityFrameworkCore.Metadata.INavigation collectionNavigation, Remotion.Linq.Clauses.IQuerySource parentQuerySource);
abstract member RegisterCorrelatedSubqueryMetadata : Remotion.Linq.Clauses.MainFromClause * bool * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Metadata.INavigation * Remotion.Linq.Clauses.IQuerySource -> unit
override this.RegisterCorrelatedSubqueryMetadata : Remotion.Linq.Clauses.MainFromClause * bool * Microsoft.EntityFrameworkCore.Metadata.INavigation * Microsoft.EntityFrameworkCore.Metadata.INavigation * Remotion.Linq.Clauses.IQuerySource -> unit
Public Overridable Sub RegisterCorrelatedSubqueryMetadata (mainFromClause As MainFromClause, trackingQuery As Boolean, firstNavigation As INavigation, collectionNavigation As INavigation, parentQuerySource As IQuerySource)

參數

mainFromClause
Remotion.Linq.Clauses.MainFromClause

main from 子句。

trackingQuery
Boolean

旗標,指出是否應該追蹤查詢。

firstNavigation
INavigation

鏈結中的第一個流覽,導致集合流覽優化。

collectionNavigation
INavigation

正在優化的集合導覽。

parentQuerySource
Remotion.Linq.Clauses.IQuerySource

查詢來源,這是集合導覽的來源。

適用於