次の方法で共有


ConventionNavigationExtensions.GetTargetType(IConventionNavigation) メソッド

定義

注意事項

Use IConventionNavigation.TargetEntityType

特定のナビゲーション プロパティが のインスタンスを保持するエンティティ型を取得します (コレクション ナビゲーションの場合は のインスタンスを保持します)。

public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType GetTargetType (this Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation);
[System.Obsolete("Use IConventionNavigation.TargetEntityType")]
public static Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType GetTargetType (this Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation navigation);
static member GetTargetType : Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
[<System.Obsolete("Use IConventionNavigation.TargetEntityType")>]
static member GetTargetType : Microsoft.EntityFrameworkCore.Metadata.IConventionNavigation -> Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType
<Extension()>
Public Function GetTargetType (navigation As IConventionNavigation) As IConventionEntityType

パラメーター

navigation
IConventionNavigation

ターゲット エンティティの種類を検索するナビゲーション プロパティ。

戻り値

対象のエンティティの型。

属性

適用対象