Sdílet prostřednictvím


StructuralTypeConfiguration<TStructuralType>.CollectionProperty<TElementType> Metoda

Definice

Přidá vlastnost kolekce do typu 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

Parametry typu

TElementType

Typ prvku kolekce.

Parametry

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

Výraz lambda představující vlastnost navigace pro relaci. Například v jazyce C# t => t.MyProperty a v jazyce Visual Basic .NET Function(t) t.MyProperty.

Návraty

Objekt konfigurace, který lze použít k další konfiguraci vlastnosti.

Platí pro