ModelExtensions.HasEntityTypeWithDefiningNavigation Método

Definição

Sobrecargas

HasEntityTypeWithDefiningNavigation(IModel, String)
Obsoleto.

Obtém um valor que indica se o modelo contém um tipo de entidade correspondente com uma navegação de definição.

HasEntityTypeWithDefiningNavigation(IModel, Type)
Obsoleto.

Obtém um valor que indica se o modelo contém um tipo de entidade correspondente com uma navegação de definição.

HasEntityTypeWithDefiningNavigation(IModel, String)

Cuidado

Use FindEntityType(string)?.HasSharedClrType

Obtém um valor que indica se o modelo contém um tipo de entidade correspondente com uma navegação de definição.

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

Parâmetros

model
IModel

O modelo no qual localizar o tipo de entidade.

name
String

O nome usado para localizar um tipo de entidade com uma navegação de definição.

Retornos

true se o modelo contiver um tipo de entidade correspondente com uma navegação de definição.

Atributos

Aplica-se a

HasEntityTypeWithDefiningNavigation(IModel, Type)

Cuidado

Use IsShared(Type)

Obtém um valor que indica se o modelo contém um tipo de entidade correspondente com uma navegação de definição.

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

Parâmetros

model
IModel

O modelo no qual localizar o tipo de entidade.

type
Type

O tipo usado para localizar uma entidade digite uma navegação de definição.

Retornos

true se o modelo contiver um tipo de entidade correspondente com uma navegação de definição.

Atributos

Aplica-se a