StructuralTypeConfiguration<TStructuralType>.CollectionProperty<TElementType> Method (Expression<Func<TStructuralType, IEnumerable<TElementType>>>)

 

Adds a collection property to the EDM type.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public CollectionPropertyConfiguration CollectionProperty<TElementType>(
    Expression<Func<TStructuralType, IEnumerable<TElementType>>> propertyExpression
)
public:
generic<typename TElementType>
CollectionPropertyConfiguration^ CollectionProperty(
    Expression<Func<TStructuralType, IEnumerable<TElementType>^>^>^ propertyExpression
)
member CollectionProperty<'TElementType> : 
        propertyExpression:Expression<Func<'TStructuralType, IEnumerable<'TElementType>>> -> CollectionPropertyConfiguration
Public Function CollectionProperty(Of TElementType) (
    propertyExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TElementType)))
) As CollectionPropertyConfiguration

Parameters

Return Value

Type: System.Web.OData.Builder.CollectionPropertyConfiguration

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

Type Parameters

  • TElementType
    The element type of the collection.

See Also

StructuralTypeConfiguration<TStructuralType> Class
System.Web.OData.Builder Namespace

Return to top