Share via


PrimitiveCollectionBuilder.ElementType Method

Definition

Overloads

ElementType()

Configures the elements of this collection.

ElementType(Action<ElementTypeBuilder>)

Configures the elements of this collection.

ElementType()

Configures the elements of this collection.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder ElementType ();
abstract member ElementType : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
override this.ElementType : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.ElementTypeBuilder
Public Overridable Function ElementType () As ElementTypeBuilder

Returns

A builder to configure the collection element type.

Applies to

ElementType(Action<ElementTypeBuilder>)

Configures the elements of this collection.

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

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