Share via


ModelConfigurationBuilder.ComplexProperties Method

Definition

Overloads

ComplexProperties(Type)

Marks the given and derived types as corresponding to complex properties.

ComplexProperties<TProperty>()

Marks the given and derived types as corresponding to complex properties.

ComplexProperties(Type)

Marks the given and derived types as corresponding to complex properties.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder ComplexProperties (Type propertyType);
abstract member ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
override this.ComplexProperties : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder
Public Overridable Function ComplexProperties (propertyType As Type) As ComplexPropertiesConfigurationBuilder

Parameters

propertyType
Type

The property type to be configured.

Returns

An object that can be used to configure the property.

Remarks

This can also be called on an interface or an unbound generic type to apply the configuration to all properties of implementing and constructed types.

See Pre-convention model building in EF Core for more information and examples.

Applies to

ComplexProperties<TProperty>()

Marks the given and derived types as corresponding to complex properties.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<TProperty> ComplexProperties<TProperty> ();
abstract member ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
override this.ComplexProperties : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertiesConfigurationBuilder<'Property>
Public Overridable Function ComplexProperties(Of TProperty) () As ComplexPropertiesConfigurationBuilder(Of TProperty)

Type Parameters

TProperty

The property type to be configured.

Returns

An object that can be used to configure the properties.

Remarks

This can also be called on an interface to apply the configuration to all properties of implementing types.

See Pre-convention model building in EF Core for more information and examples.

Applies to