Share via


NavigationExtensions.GetTargetType(INavigation) メソッド

定義

注意事項

Use INavigation.TargetEntityType

注意事項

Use IReadOnlyNavigation.TargetEntityType

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

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

パラメーター

navigation
INavigation

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

戻り値

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

属性

適用対象