EntityTypeBuilder<TEntity>.PrimitiveCollection<TProperty> Method

Definition

Returns an object that can be used to configure a property of the entity type where that property represents a collection of primitive values, such as strings or integers.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<TProperty> PrimitiveCollection<TProperty> (System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression);
override this.PrimitiveCollection : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.PrimitiveCollectionBuilder<'Property>
Public Overridable Function PrimitiveCollection(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As PrimitiveCollectionBuilder(Of TProperty)

Type Parameters

TProperty

Parameters

propertyExpression
Expression<Func<TEntity,TProperty>>

A lambda expression representing the property to be configured ( blog => blog.Url).

Returns

An object that can be used to configure the property.

Applies to