IConventionTypeBase.AddComplexProperty 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
AddComplexProperty(String, Boolean, Boolean) |
이 형식에 속성을 추가합니다. |
AddComplexProperty(MemberInfo, String, Boolean, Boolean) |
이 형식에 속성을 추가합니다. |
AddComplexProperty(String, Type, Type, String, Boolean, Boolean) |
이 형식에 속성을 추가합니다. |
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean) |
이 형식에 속성을 추가합니다. |
AddComplexProperty(String, Boolean, Boolean)
이 형식에 속성을 추가합니다.
public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty
매개 변수
- name
- String
추가할 속성의 이름입니다.
- collection
- Boolean
속성이 컬렉션을 나타내는지 여부를 나타냅니다.
- fromDataAnnotation
- Boolean
데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.
반환
새로 만든 속성입니다.
적용 대상
AddComplexProperty(MemberInfo, String, Boolean, Boolean)
이 형식에 속성을 추가합니다.
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty
매개 변수
- memberInfo
- MemberInfo
형식의 해당 멤버입니다.
- complexTypeName
- String
복합 형식의 이름입니다.
- collection
- Boolean
속성이 컬렉션을 나타내는지 여부를 나타냅니다.
- fromDataAnnotation
- Boolean
데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.
반환
새로 만든 속성입니다.
- 특성
적용 대상
AddComplexProperty(String, Type, Type, String, Boolean, Boolean)
이 형식에 속성을 추가합니다.
public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty
매개 변수
- name
- String
추가할 속성의 이름입니다.
- propertyType
- Type
속성 형식입니다.
- complexType
- Type
속성이 보유할 값의 형식입니다.
- complexTypeName
- String
복합 형식의 이름입니다.
- collection
- Boolean
속성이 컬렉션을 나타내는지 여부를 나타냅니다.
- fromDataAnnotation
- Boolean
데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.
반환
새로 만든 속성입니다.
적용 대상
AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)
이 형식에 속성을 추가합니다.
public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, memberInfo As MemberInfo, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty
매개 변수
- name
- String
추가할 속성의 이름입니다.
- propertyType
- Type
속성 형식입니다.
- complexType
- Type
속성이 보유할 값의 형식입니다.
- complexTypeName
- String
복합 형식의 이름입니다.
- collection
- Boolean
속성이 컬렉션을 나타내는지 여부를 나타냅니다.
- fromDataAnnotation
- Boolean
데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.
반환
새로 만든 속성입니다.
적용 대상
Entity Framework
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기