다음을 통해 공유


EntityTypeExtensions.GetProperty(IEntityType, String) 메서드

정의

지정된 이름의 속성을 가져옵니다.

이 API는 스칼라 속성만 찾고 탐색 속성을 찾을 수 없습니다. 를 사용하여 FindNavigation(IEntityType, String) 탐색 속성을 찾습니다.

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

매개 변수

entityType
IEntityType

엔터티 형식입니다.

name
String

속성 이름입니다.

반환

속성이거나 null , 찾을 수 없는 경우 입니다.

적용 대상