IConventionTypeBaseBuilder.ComplexProperty Method

Definition

Overloads

ComplexProperty(MemberInfo, Type, Boolean)

Returns an object that can be used to configure the complex property with the given member info. If no matching property exists, then a new property will be added.

ComplexProperty(Type, String, Type, Boolean)

Returns an object that can be used to configure the complex property with the given name. If no matching property exists, then a new property will be added.

ComplexProperty(MemberInfo, Type, Boolean)

Returns an object that can be used to configure the complex property with the given member info. If no matching property exists, then a new property will be added.

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

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

An object that can be used to configure the property if it exists on the type, null otherwise.

Applies to

ComplexProperty(Type, String, Type, Boolean)

Returns an object that can be used to configure the complex property with the given name. If no matching property exists, then a new property will be added.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder? ComplexProperty (Type propertyType, string propertyName, Type? complexType = default, bool fromDataAnnotation = false);
abstract member ComplexProperty : Type * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionComplexPropertyBuilder
Public Function ComplexProperty (propertyType As Type, propertyName As String, Optional complexType As Type = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionComplexPropertyBuilder

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

An object that can be used to configure the property if it exists on the type, null otherwise.

Applies to