ComplexPropertyBuilder<TComplex>.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 primitive collection property of the entity type. If the specified property is not already part of the model, it will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<TProperty> PrimitiveCollection<TProperty> (System.Linq.Expressions.Expression<Func<TComplex,TProperty>> propertyExpression);
override this.PrimitiveCollection : System.Linq.Expressions.Expression<Func<'Complex, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePrimitiveCollectionBuilder<'Property>
Public Overridable Function PrimitiveCollection(Of TProperty) (propertyExpression As Expression(Of Func(Of TComplex, TProperty))) As ComplexTypePrimitiveCollectionBuilder(Of TProperty)
Type Parameters
- TProperty
Parameters
- propertyExpression
- Expression<Func<TComplex,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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework