Share via


StructuralTypeConfiguration<TStructuralType>.ContainsMany<TTargetEntity> Method

Definition

Configures a relationship from this structural type to a contained collection navigation property.

public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration ContainsMany<TTargetEntity> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TTargetEntity>>> navigationPropertyExpression) where TTargetEntity : class;
member this.ContainsMany : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'argetEntity>>> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration (requires 'argetEntity : null)
Public Function ContainsMany(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