IConventionTypeBaseBuilder.CanHaveComplexProperty 方法

定义

重载

CanHaveComplexProperty(MemberInfo, Type, Boolean)

返回一个值,该值指示是否可以将给定的复杂属性添加到此类型。

CanHaveComplexProperty(Type, String, Type, Boolean)

返回一个值,该值指示是否可以将给定的复杂属性添加到此类型。

CanHaveComplexProperty(MemberInfo, Type, Boolean)

返回一个值,该值指示是否可以将给定的复杂属性添加到此类型。

public bool CanHaveComplexProperty (System.Reflection.MemberInfo memberInfo, Type? complexType = default, bool fromDataAnnotation = false);
abstract member CanHaveComplexProperty : System.Reflection.MemberInfo * Type * bool -> bool
Public Function CanHaveComplexProperty (memberInfo As MemberInfo, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

memberInfo
MemberInfo

PropertyInfo属性的 或 FieldInfo

complexType
Type

目标复杂类型。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

true 如果可以添加 属性,则为 。

适用于

CanHaveComplexProperty(Type, String, Type, Boolean)

返回一个值,该值指示是否可以将给定的复杂属性添加到此类型。

public bool CanHaveComplexProperty (Type? propertyType, string propertyName, Type? complexType = default, bool fromDataAnnotation = false);
abstract member CanHaveComplexProperty : Type * string * Type * bool -> bool
Public Function CanHaveComplexProperty (propertyType As Type, propertyName As String, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As Boolean

参数

propertyType
Type

属性将保留的值的类型。

propertyName
String

要配置的属性的名称。

complexType
Type

目标复杂类型。

fromDataAnnotation
Boolean

指示是否使用数据注释指定配置。

返回

true 如果可以添加 属性,则为 。

适用于