Share via


PrimitiveCollectionBuilder<TProperty>.ElementType Method

Definition

Configures the elements of this collection.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> ElementType (Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder> builderAction);
override this.ElementType : Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property>
Public Overridable Function ElementType (builderAction As Action(Of ElementTypeBuilder)) As PrimitiveCollectionBuilder(Of TProperty)

Parameters

builderAction
Action<ElementTypeBuilder>

An action that performs configuration of the collection element type.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to