다음을 통해 공유


IConventionEntityTypeBuilder.GetOrCreateProperties 메서드

정의

오버로드

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

지정된 멤버와 일치하는 기존 속성을 반환하거나 만듭니다.

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

지정된 이름의 기존 속성을 반환하거나 일치하는 CLR 멤버가 있으면 만듭니다.

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

지정된 멤버와 일치하는 기존 속성을 반환하거나 만듭니다.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo> memberInfos, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>? memberInfos, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : seq<System.Reflection.MemberInfo> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (memberInfos As IEnumerable(Of MemberInfo), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)

매개 변수

memberInfos
IEnumerable<MemberInfo>

형식 멤버입니다.

fromDataAnnotation
Boolean

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

반환

엔터티 형식 null 에 있는 경우 속성 목록입니다. 그렇지 않으면 입니다.

적용 대상

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

지정된 이름의 기존 속성을 반환하거나 일치하는 CLR 멤버가 있으면 만듭니다.

public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string>? propertyNames, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : System.Collections.Generic.IReadOnlyList<string> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)

매개 변수

propertyNames
IReadOnlyList<String>

속성의 이름입니다.

fromDataAnnotation
Boolean

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

반환

엔터티 형식 null 에 있는 경우 속성 목록입니다. 그렇지 않으면 입니다.

적용 대상