Share via


MutableNavigationExtensions.GetTargetType(IMutableNavigation) Méthode

Définition

Attention

Use IMutableNavigation.TargetEntityType

Obtient le type d’entité qu’une propriété de navigation donnée contiendra une instance (ou des instances de conservation de si il s’agit d’une navigation de collection).

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

Paramètres

navigation
IMutableNavigation

Propriété de navigation pour rechercher le type d’entité cible.

Retours

Type d'entité cible.

Attributs

S’applique à