Share via


BindingPathConfiguration<TStructuralType>.HasManyBinding Method

Definition

Overloads

HasManyBinding<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many path of the derived type for this binding path and binds the corresponding navigation property to the given entity set.

HasManyBinding<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many path for this binding path and binds the corresponding navigation property to the given entity set.

HasManyBinding<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many path of the derived type for this binding path and binds the corresponding navigation property to the given entity set.

public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType,TDerivedType> (System.Linq.Expressions.Expression<Func<TDerivedType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, string targetEntitySet) where TTargetType : class where TDerivedType : class, TStructuralType;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<#'StructuralType, seq<'argetType>>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class, TDerivedType As Class) (navigationExpression As Expression(Of Func(Of TDerivedType, IEnumerable(Of TTargetType))), targetEntitySet As String) As NavigationPropertyBindingConfiguration

Type Parameters

TTargetType

The target property type.

TDerivedType

The derived structural type.

Parameters

navigationExpression
Expression<Func<TDerivedType,IEnumerable<TTargetType>>>

A lambda expression representing the binding path property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

targetEntitySet
String

The target navigation source (entity set) for the binding.

Returns

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

Applies to

HasManyBinding<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>, String)

Configures an one-to-many path for this binding path and binds the corresponding navigation property to the given entity set.

public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, string targetEntitySet) where TTargetType : class;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'argetType>>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class) (navigationExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TTargetType))), targetEntitySet As String) As NavigationPropertyBindingConfiguration

Type Parameters

TTargetType

The target property type.

Parameters

navigationExpression
Expression<Func<TStructuralType,IEnumerable<TTargetType>>>

A lambda expression representing the binding path property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

targetEntitySet
String

The target navigation source (entity set) for the binding.

Returns

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

Applies to