IMemberClassifier.IsCandidateNavigationProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示該成員是否為候選導航。
public bool IsCandidateNavigationProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, bool useAttributes, out Type? elementType, out bool? shouldBeOwned, out bool explicitlyConfigured);
abstract member IsCandidateNavigationProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * bool * Type * Nullable * bool -> bool
Public Function IsCandidateNavigationProperty (memberInfo As MemberInfo, model As IConventionModel, useAttributes As Boolean, ByRef elementType As Type, ByRef shouldBeOwned As Nullable(Of Boolean), ByRef explicitlyConfigured As Boolean) As Boolean
參數
- memberInfo
- MemberInfo
成員要分類。
- model
- IConventionModel
模型。
- useAttributes
- Boolean
是否應該考慮成員身上的屬性。
- elementType
- Type
當此方法回傳時,集合導覽的元素類型,或 null 非集合(參考)導覽,以及非候選導覽的成員。 對於導航目標類型,當 non-null, 否則 MemberInfo為 時,使用此值。
- explicitlyConfigured
- Boolean
當此方法回傳時,表示目標類型是否已被明確設定。
傳回
true 若該成員是候選人導航;否則 false。