次の方法で共有


ModelExtensions.HasEntityTypeWithDefiningNavigation メソッド

定義

オーバーロード

HasEntityTypeWithDefiningNavigation(IModel, String)
古い.

モデルに、ナビゲーションを定義する対応するエンティティ型が含まれているかどうかを示す値を取得します。

HasEntityTypeWithDefiningNavigation(IModel, Type)
古い.

モデルに、ナビゲーションを定義する対応するエンティティ型が含まれているかどうかを示す値を取得します。

HasEntityTypeWithDefiningNavigation(IModel, String)

注意事項

Use FindEntityType(string)?.HasSharedClrType

モデルに、ナビゲーションを定義する対応するエンティティ型が含まれているかどうかを示す値を取得します。

public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, string name);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use FindEntityType(string)?.HasSharedClrType")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, name As String) As Boolean

パラメーター

model
IModel

エンティティ型を検索するモデル。

name
String

ナビゲーションを定義するエンティティ型を検索するために使用される名前。

戻り値

true モデルに、ナビゲーションを定義する対応するエンティティ型が含まれている場合は 。

属性

適用対象

HasEntityTypeWithDefiningNavigation(IModel, Type)

注意事項

Use IsShared(Type)

モデルに、ナビゲーションを定義する対応するエンティティ型が含まれているかどうかを示す値を取得します。

public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IsShared(Type)")]
public static bool HasEntityTypeWithDefiningNavigation (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IsShared(Type)")>]
static member HasEntityTypeWithDefiningNavigation : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
<Extension()>
Public Function HasEntityTypeWithDefiningNavigation (model As IModel, type As Type) As Boolean

パラメーター

model
IModel

エンティティ型を検索するモデル。

type
Type

エンティティ型を検索するために使用される型は、定義ナビゲーションです。

戻り値

true モデルに、ナビゲーションを定義する対応するエンティティ型が含まれている場合は 。

属性

適用対象