Sdílet prostřednictvím


EntityTypeExtensions.GetProperty(IEntityType, String) Metoda

Definice

Získá vlastnost se zadaným názvem.

Toto rozhraní API vyhledá pouze skalární vlastnosti a nenalezne vlastnosti navigace. Slouží FindNavigation(IEntityType, String) k vyhledání vlastnosti navigace.

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

Parametry

entityType
IEntityType

Typ entity.

name
String

Název vlastnosti

Návraty

Vlastnost nebo null pokud nebyla nalezena žádná.

Platí pro