다음을 통해 공유


MutableEntityTypeExtensions.FindProperty 메서드

정의

지정된 엔터티 형식의 속성을 가져옵니다. 속성을 찾을 수 없으면 를 반환 null 합니다.

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function FindProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty

매개 변수

entityType
IMutableEntityType

엔터티 형식입니다.

propertyInfo
PropertyInfo

엔터티 클래스의 속성입니다.

반환

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

적용 대상