Share via


StructuralTypeConfiguration<TStructuralType>.HasMany<TTargetEntity> Method

Definition

Configures a many relationship from this structural type.

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

Type Parameters

TTargetEntity

The type of the entity at the other end of the relationship.

Parameters

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

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.

Returns

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

Applies to