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 如果模型包含具有定义导航的相应实体类型,则为 。

属性

适用于