Share via


StructuralTypeConfiguration<TStructuralType>.CollectionProperty<TElementType> Method

Definition

Adds a collection property to the EDM type.

public Microsoft.AspNet.OData.Builder.CollectionPropertyConfiguration CollectionProperty<TElementType> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TElementType>>> propertyExpression);
member this.CollectionProperty : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'ElementType>>> -> Microsoft.AspNet.OData.Builder.CollectionPropertyConfiguration
Public Function CollectionProperty(Of TElementType) (propertyExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TElementType)))) As CollectionPropertyConfiguration

Type Parameters

TElementType

The element type of the collection.

Parameters

propertyExpression
Expression<Func<TStructuralType,IEnumerable<TElementType>>>

A lambda expression representing the navigation property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

Returns

A configuration object that can be used to further configure the property.

Applies to