IConventionProperty.SetElementType(Type, Boolean) Method

Definition

Sets the configuration for elements of the primitive collection represented by this property.

public Microsoft.EntityFrameworkCore.Metadata.IConventionElementType? SetElementType (Type? elementType, bool fromDataAnnotation = false);
abstract member SetElementType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionElementType
Public Function SetElementType (elementType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionElementType

Parameters

elementType
Type

If true, then the type mapping has an element type, otherwise it is removed.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configuration for the elements.

Applies to