Share via


NavigationSourceConfiguration<TEntityType>.HasSingletonBinding Method

Definition

Overloads

HasSingletonBinding<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 singleton.

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

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

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

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

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

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

HasSingletonBinding<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 singleton.

public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasSingletonBinding<TTargetType,TDerivedEntityType> (System.Linq.Expressions.Expression<Func<TDerivedEntityType,TTargetType>> navigationExpression, Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<TTargetType> targetSingleton) where TTargetType : class where TDerivedEntityType : class, TEntityType;
member this.HasSingletonBinding : 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 HasSingletonBinding(Of TTargetType As Class, TDerivedEntityType As Class) (navigationExpression As Expression(Of Func(Of TDerivedEntityType, TTargetType)), targetSingleton 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.

targetSingleton
NavigationSourceConfiguration<TTargetType>

The target singleton for the binding.

Returns

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

Applies to

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

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

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

singletonName
String

The target navigation source (singleton) name for the binding.

Returns

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

Applies to

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

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

public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasSingletonBinding<TTargetType> (System.Linq.Expressions.Expression<Func<TEntityType,TTargetType>> navigationExpression, Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<TTargetType> targetSingleton) where TTargetType : class;
member this.HasSingletonBinding : 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 HasSingletonBinding(Of TTargetType As Class) (navigationExpression As Expression(Of Func(Of TEntityType, TTargetType)), targetSingleton 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.

targetSingleton
NavigationSourceConfiguration<TTargetType>

The target navigation source (singleton) for the binding.

Returns

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

Applies to

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

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

public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasSingletonBinding<TTargetType> (System.Linq.Expressions.Expression<Func<TEntityType,TTargetType>> navigationExpression, string singletonName) where TTargetType : class;
member this.HasSingletonBinding : System.Linq.Expressions.Expression<Func<'EntityType, 'argetType>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasSingletonBinding(Of TTargetType As Class) (navigationExpression As Expression(Of Func(Of TEntityType, TTargetType)), singletonName 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.

singletonName
String

The target navigation source (singleton) name for the binding.

Returns

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

Applies to