PrimitiveCollectionBuilder.ElementType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework