Udostępnij za pośrednictwem


MutableForeignKeyExtensions.GetRelatedEntityType Metoda

Definicja

Pobiera typ jednostki powiązany z danym.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetRelatedEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetRelatedEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetRelatedEntityType (foreignKey As IMutableForeignKey, entityType As IMutableEntityType) As IMutableEntityType

Parametry

foreignKey
IMutableForeignKey

Klucz obcy.

entityType
IMutableEntityType

Jeden z typów jednostek powiązanych z kluczem obcym.

Zwraca

Typ jednostki powiązany z danym.

Dotyczy