NavigationExtensions.GetTargetType(INavigation) Método

Definição

Cuidado

Use INavigation.TargetEntityType

Cuidado

Use IReadOnlyNavigation.TargetEntityType

Obtém o tipo de entidade do qual uma determinada propriedade de navegação conterá uma instância do (ou manterá instâncias de se for uma navegação de coleção).

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

Parâmetros

navigation
INavigation

A propriedade de navegação da qual localizar o tipo de entidade de destino.

Retornos

O tipo de entidade de destino.

Atributos

Aplica-se a