Sdílet prostřednictvím


EntityTypeExtensions.FindDeclaredNavigation(IEntityType, String) Metoda

Definice

Získá navigační vlastnost pro daný typ entity. Nevrací navigační vlastnosti definované u základního typu. Vrátí hodnotu null , pokud není nalezena žádná navigační vlastnost.

public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindDeclaredNavigation (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string name);
static member FindDeclaredNavigation : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindDeclaredNavigation (entityType As IEntityType, name As String) As INavigation

Parametry

entityType
IEntityType

Typ entity.

name
String

Název vlastnosti navigace ve třídě entity.

Návraty

Navigační vlastnost nebo null pokud se žádná nenašla.

Platí pro