EntityTypeBuilder<TEntity>.PrimitiveCollection<TProperty> 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.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for