Share via


NavigationSourceConfiguration<TEntityType>.HasRequiredBinding Method

Definition

Overloads

HasRequiredBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

HasRequiredBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

HasRequiredBinding<TTargetType,TDerivedEntityType>(Expression<Func<TDerivedEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Type Parameters

TTargetType

The target navigation source type.

TDerivedEntityType

The target entity type.

Parameters

navigationExpression
Expression<Func<TDerivedEntityType,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
NavigationSourceConfiguration<TTargetType>

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

Returns

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

Applies to

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

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Type Parameters

TTargetType

The target navigation source type.

TDerivedEntityType

The target entity type.

Parameters

navigationExpression
Expression<Func<TDerivedEntityType,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.

entitySetName
String

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

Returns

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

Applies to

HasRequiredBinding<TTargetType>(Expression<Func<TEntityType,TTargetType>>, NavigationSourceConfiguration<TTargetType>)

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Type Parameters

TTargetType

The target navigation source type.

Parameters

navigationExpression
Expression<Func<TEntityType,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
NavigationSourceConfiguration<TTargetType>

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

Returns

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

Applies to

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

Configures a required relationship from this entity type and binds the corresponding navigation property to the given entity set.

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

Type Parameters

TTargetType

The target navigation source type.

Parameters

navigationExpression
Expression<Func<TEntityType,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.

entitySetName
String

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

Returns

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

Applies to