IConventionTypeBaseBuilder.CanHaveComplexProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CanHaveComplexProperty(MemberInfo, Type, Boolean) |
Returns a value indicating whether the given complex property can be added to this type. |
CanHaveComplexProperty(Type, String, Type, Boolean) |
Returns a value indicating whether the given complex property can be added to this type. |
CanHaveComplexProperty(MemberInfo, Type, Boolean)
Returns a value indicating whether the given complex property can be added to this type.
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
Parameters
- memberInfo
- MemberInfo
The PropertyInfo or FieldInfo of the property.
- complexType
- Type
The target complex type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the property can be added.
Applies to
CanHaveComplexProperty(Type, String, Type, Boolean)
Returns a value indicating whether the given complex property can be added to this type.
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
Parameters
- propertyType
- Type
The type of value the property will hold.
- propertyName
- String
The name of the property to be configured.
- complexType
- Type
The target complex type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true
if the property can be added.
Applies to
Entity Framework