Share via


BindingPathConfiguration<TStructuralType>.HasRequiredBinding Method

Definition

Overloads

HasRequiredBinding<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, String)

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

HasRequiredBinding<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, String)

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

HasRequiredBinding<TTargetType,TDerivedType>(Expression<Func<TDerivedType,TTargetType>>, String)

Configures a required one-to-one 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 HasRequiredBinding<TTargetType,TDerivedType> (System.Linq.Expressions.Expression<Func<TDerivedType,TTargetType>> navigationExpression, string targetEntitySet) where TTargetType : class where TDerivedType : class, TStructuralType;
member this.HasRequiredBinding : System.Linq.Expressions.Expression<Func<#'StructuralType, 'argetType>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasRequiredBinding(Of TTargetType As Class, TDerivedType As Class) (navigationExpression As Expression(Of Func(Of TDerivedType, TTargetType)), targetEntitySet As String) As NavigationPropertyBindingConfiguration

Type Parameters

TTargetType

The target navigation source type.

TDerivedType

The derived structural type.

Parameters

navigationExpression
Expression<Func<TDerivedType,TTargetType>>

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.

targetEntitySet
String

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

Returns

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

Applies to

HasRequiredBinding<TTargetType>(Expression<Func<TStructuralType,TTargetType>>, String)

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

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

Type Parameters

TTargetType

The target navigation source type.

Parameters

navigationExpression
Expression<Func<TStructuralType,TTargetType>>

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.

targetEntitySet
String

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

Returns

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

Applies to