ComplexPropertyDiscoveryConvention.IsCandidateComplexProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
属性是否应映射为集合。