Sdílet prostřednictvím


StructuralTypeConfiguration<TStructuralType>.HasMany<TTargetEntity> Metoda

Definice

Konfiguruje relaci N z tohoto typu struktury.

public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasMany<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TTargetEntity>>> navigationPropertyExpression) where TTargetEntity : class;
member this.HasMany : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'argetEntity>>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function HasMany(Of TTargetEntity As Class) (navigationPropertyExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TTargetEntity)))) As NavigationPropertyConfiguration

Parametry typu

TTargetEntity

Typ entity na druhém konci relace.

Parametry

navigationPropertyExpression
Expression<Func<TStructuralType,IEnumerable<TTargetEntity>>>

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 relace.

Platí pro