ComplexPropertyDiscoveryConvention.IsCandidateComplexProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type) |
回傳一個值,表示該成員是否為複數屬性候選。 |
| IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type, Boolean) |
回傳一個值,表示該成員是否為複數屬性候選。 |
IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type)
回傳一個值,表示該成員是否為複數屬性候選。
protected virtual bool IsCandidateComplexProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, out Type? targetClrType);
abstract member IsCandidateComplexProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Type -> bool
override this.IsCandidateComplexProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Type -> bool
Protected Overridable Function IsCandidateComplexProperty (memberInfo As MemberInfo, structuralType As IConventionTypeBase, ByRef targetClrType As Type) As Boolean
參數
- memberInfo
- MemberInfo
成員。
- structuralType
- IConventionTypeBase
該物業將被發現的類型。
- targetClrType
- Type
複雜型。
傳回
適用於
IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type, Boolean)
回傳一個值,表示該成員是否為複數屬性候選。
protected virtual bool IsCandidateComplexProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, out Type? targetClrType, out bool isCollection);
abstract member IsCandidateComplexProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Type * bool -> bool
override this.IsCandidateComplexProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Type * bool -> bool
Protected Overridable Function IsCandidateComplexProperty (memberInfo As MemberInfo, structuralType As IConventionTypeBase, ByRef targetClrType As Type, ByRef isCollection As Boolean) As Boolean
參數
- memberInfo
- MemberInfo
成員。
- structuralType
- IConventionTypeBase
該物業將被發現的類型。
- targetClrType
- Type
複雜型。
- isCollection
- Boolean
是否應該將該財產映射為一個集合。