Compartir a través de


StructuralTypeConfiguration<TStructuralType>.CollectionProperty<TElementType> Método

Definición

Agrega una propiedad de colección al tipo EDM.

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

Parámetros de tipo

TElementType

El tipo de elemento de la colección.

Parámetros

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

Una expresión lambda que representa la propiedad de navegación de la relación. Por ejemplo, en C# t => t.MyProperty y en Visual Basic .NET Function(t) t.MyProperty.

Devoluciones

Un objeto de configuración que se puede usar para seguir configurando la propiedad.

Se aplica a