IConventionEntityTypeBuilder.GetOrCreateProperties 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
에 있는 경우 속성 목록입니다. 그렇지 않으면 입니다.
적용 대상
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기