StructuralTypeConfiguration<TStructuralType>.CollectionProperty<TElementType> Method (Expression<Func<TStructuralType, IEnumerable<TElementType>>>)
Adds a collection property to the EDM type.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.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
propertyExpression
Type: System.Linq.Expressions.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.
Return Value
Type: System.Web.Http.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.Http.OData.Builder Namespace
Return to top