다음을 통해 공유


IConventionProperty.SetElementType(Type, Boolean) 메서드

정의

이 속성이 나타내는 기본 컬렉션의 요소에 대한 구성을 설정합니다.

public Microsoft.EntityFrameworkCore.Metadata.IConventionElementType? SetElementType (Type? elementType, bool fromDataAnnotation = false);
abstract member SetElementType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionElementType
Public Function SetElementType (elementType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionElementType

매개 변수

elementType
Type

이면 true형식 매핑에 요소 형식이 있으며, 그렇지 않으면 제거됩니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

요소에 대한 구성입니다.

적용 대상