Share via


BindingPathConfiguration<TStructuralType>.HasSinglePath Method

Definition

Overloads

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, Boolean, Boolean)

Configures a required one-to-one path of the derived type for this binding path.

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>)

Configures a required one-to-one path of the derived type for this binding path.

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>)

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

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, Boolean, Boolean)

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

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, Boolean, Boolean)

Configures a required one-to-one path of the derived type for this binding path.

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

Type Parameters

TTargetType

The target property type.

TDerivedType

The derived structural type.

Parameters

pathExpression
Expression<Func<TDerivedType,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.

required
Boolean

A flag representing the target property required or optional.

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

HasSinglePath<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>)

Configures a required one-to-one path of the derived type for this binding path.

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

Type Parameters

TTargetType

The target property type.

TDerivedType

The derived structural type.

Parameters

pathExpression
Expression<Func<TDerivedType,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

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>)

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

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

Type Parameters

TTargetType

The target property type.

Parameters

pathExpression
Expression<Func<TStructuralType,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

HasSinglePath<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, Boolean, Boolean)

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

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

Type Parameters

TTargetType

The target property type.

Parameters

pathExpression
Expression<Func<TStructuralType,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.

required
Boolean

A flag representing the target property required or optional.

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