Jaa


BindingPathConfiguration<TStructuralType>.HasManyPath Method

Definition

Overloads

HasManyPath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>)

Configures an one-to-many path of the derived type for this binding path.

HasManyPath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>, Boolean)

Configures an one-to-many path of the derived type for this binding path.

HasManyPath<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>)

Configures an one-to-many path for this binding path.

HasManyPath<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>, Boolean)

Configures an one-to-many path for this binding path.

HasManyPath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>)

Configures an one-to-many path of the derived type for this binding path.

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

Type Parameters

TTargetType

The target property type.

TDerivedType

The derived structural type.

Parameters

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

Returns

A configuration object BindingPathConfiguration<TStructuralType> that can be used to further configure the binding path or end the binding.

Applies to

HasManyPath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,IEnumerable<TTargetType>>>, Boolean)

Configures an one-to-many path of the derived type for this binding path.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasManyPath<TTargetType,TDerivedType> (System.Linq.Expressions.Expression<Func<TDerivedType,System.Collections.Generic.IEnumerable<TTargetType>>> pathExpression, bool contained) where TTargetType : class where TDerivedType : class, TStructuralType;
member this.HasManyPath : System.Linq.Expressions.Expression<Func<#'StructuralType, seq<'argetType>>> * bool -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasManyPath(Of TTargetType As Class, TDerivedType As Class) (pathExpression As Expression(Of Func(Of TDerivedType, IEnumerable(Of TTargetType))), contained As Boolean) As BindingPathConfiguration(Of TTargetType)

Type Parameters

TTargetType

The target property type.

TDerivedType

The derived structural type.

Parameters

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

contained
Boolean

A flag representing the target property as containment.

Returns

A configuration object BindingPathConfiguration<TStructuralType> that can be used to further configure the binding path or end the binding.

Applies to

HasManyPath<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>)

Configures an one-to-many path for this binding path.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasManyPath<TTargetType> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TTargetType>>> pathExpression) where TTargetType : class;
member this.HasManyPath : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'argetType>>> -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasManyPath(Of TTargetType As Class) (pathExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TTargetType)))) As BindingPathConfiguration(Of TTargetType)

Type Parameters

TTargetType

The target property type.

Parameters

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

Returns

A configuration object BindingPathConfiguration<TStructuralType> that can be used to further configure the binding path or end the binding.

Applies to

HasManyPath<TTargetType>(Expression<Func<TStructuralType,IEnumerable<TTargetType>>>, Boolean)

Configures an one-to-many path for this binding path.

public Microsoft.AspNet.OData.Builder.BindingPathConfiguration<TTargetType> HasManyPath<TTargetType> (System.Linq.Expressions.Expression<Func<TStructuralType,System.Collections.Generic.IEnumerable<TTargetType>>> pathExpression, bool contained) where TTargetType : class;
member this.HasManyPath : System.Linq.Expressions.Expression<Func<'StructuralType, seq<'argetType>>> * bool -> Microsoft.AspNet.OData.Builder.BindingPathConfiguration<'argetType (requires 'argetType : null)> (requires 'argetType : null)
Public Function HasManyPath(Of TTargetType As Class) (pathExpression As Expression(Of Func(Of TStructuralType, IEnumerable(Of TTargetType))), contained As Boolean) As BindingPathConfiguration(Of TTargetType)

Type Parameters

TTargetType

The target property type.

Parameters

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

contained
Boolean

A flag representing the target property as containment.

Returns

A configuration object BindingPathConfiguration<TStructuralType> that can be used to further configure the binding path or end the binding.

Applies to