NavigationSourceConfiguration<TEntityType>.HasManyBinding Method
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
HasManyBinding<TTargetType>(Expression<Func<TEntityType, IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>) | Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set. |
|
HasManyBinding<TTargetType>(Expression<Func<TEntityType, IEnumerable<TTargetType>>>, String) | Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set. |
|
HasManyBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>) | Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set. |
|
HasManyBinding<TTargetType, TDerivedEntityType>(Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, String) | Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set. |
See Also
NavigationSourceConfiguration<TEntityType> Class
System.Web.OData.Builder Namespace
Return to top
NavigationSourceConfiguration<TEntityType>.HasManyBinding<TTargetType> Method (Expression<Func<TEntityType, IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>)
Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Syntax
public NavigationPropertyBindingConfiguration HasManyBinding<TTargetType>(
Expression<Func<TEntityType, IEnumerable<TTargetType>>> navigationExpression,
NavigationSourceConfiguration<TTargetType> targetEntitySet
)
where TTargetType : class
public:
generic<typename TTargetType>
where TTargetType : ref class
NavigationPropertyBindingConfiguration^ HasManyBinding(
Expression<Func<TEntityType, IEnumerable<TTargetType>^>^>^ navigationExpression,
NavigationSourceConfiguration<TTargetType>^ targetEntitySet
)
member HasManyBinding<'TTargetType when 'TTargetType : not struct> :
navigationExpression:Expression<Func<'TEntityType, IEnumerable<'TTargetType>>> *
targetEntitySet:NavigationSourceConfiguration<'TTargetType> -> NavigationPropertyBindingConfiguration
Public Function HasManyBinding(Of TTargetType As Class) (
navigationExpression As Expression(Of Func(Of TEntityType, IEnumerable(Of TTargetType))),
targetEntitySet As NavigationSourceConfiguration(Of TTargetType)
) As NavigationPropertyBindingConfiguration
Parameters
navigationExpression
Type: System.Linq.Expressions.Expression<Func<TEntityType, IEnumerable<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
Type: System.Web.OData.Builder.NavigationSourceConfiguration<TTargetType>The target navigation source (entity set) for the binding.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
A configuration object that can be used to further configure the relationship further.
Type Parameters
- TTargetType
The target navigation source type.
Return to top
NavigationSourceConfiguration<TEntityType>.HasManyBinding<TTargetType> Method (Expression<Func<TEntityType, IEnumerable<TTargetType>>>, String)
Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Syntax
public NavigationPropertyBindingConfiguration HasManyBinding<TTargetType>(
Expression<Func<TEntityType, IEnumerable<TTargetType>>> navigationExpression,
string entitySetName
)
where TTargetType : class
public:
generic<typename TTargetType>
where TTargetType : ref class
NavigationPropertyBindingConfiguration^ HasManyBinding(
Expression<Func<TEntityType, IEnumerable<TTargetType>^>^>^ navigationExpression,
String^ entitySetName
)
member HasManyBinding<'TTargetType when 'TTargetType : not struct> :
navigationExpression:Expression<Func<'TEntityType, IEnumerable<'TTargetType>>> *
entitySetName:string -> NavigationPropertyBindingConfiguration
Public Function HasManyBinding(Of TTargetType As Class) (
navigationExpression As Expression(Of Func(Of TEntityType, IEnumerable(Of TTargetType))),
entitySetName As String
) As NavigationPropertyBindingConfiguration
Parameters
navigationExpression
Type: System.Linq.Expressions.Expression<Func<TEntityType, IEnumerable<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
Type: System.StringThe target navigation source (entity set) name for the binding.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
A configuration object that can be used to further configure the relationship.
Type Parameters
- TTargetType
The target navigation source type.
Return to top
NavigationSourceConfiguration<TEntityType>.HasManyBinding<TTargetType, TDerivedEntityType> Method (Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, NavigationSourceConfiguration<TTargetType>)
Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Syntax
public NavigationPropertyBindingConfiguration HasManyBinding<TTargetType, TDerivedEntityType>(
Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>> navigationExpression,
NavigationSourceConfiguration<TTargetType> targetEntitySet
)
where TTargetType : class
where TDerivedEntityType : class, TEntityType
public:
generic<typename TTargetType, typename TDerivedEntityType>
where TTargetType : ref class
where TDerivedEntityType : ref class, TEntityType
NavigationPropertyBindingConfiguration^ HasManyBinding(
Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>^>^>^ navigationExpression,
NavigationSourceConfiguration<TTargetType>^ targetEntitySet
)
member HasManyBinding<'TTargetType, 'TDerivedEntityType when 'TTargetType : not struct when 'TDerivedEntityType : not struct and 'TEntityType> :
navigationExpression:Expression<Func<'TDerivedEntityType, IEnumerable<'TTargetType>>> *
targetEntitySet:NavigationSourceConfiguration<'TTargetType> -> NavigationPropertyBindingConfiguration
Public Function HasManyBinding(Of TTargetType As Class, TDerivedEntityType As { Class, TEntityType }) (
navigationExpression As Expression(Of Func(Of TDerivedEntityType, IEnumerable(Of TTargetType))),
targetEntitySet As NavigationSourceConfiguration(Of TTargetType)
) As NavigationPropertyBindingConfiguration
Parameters
navigationExpression
Type: System.Linq.Expressions.Expression<Func<TDerivedEntityType, IEnumerable<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
Type: System.Web.OData.Builder.NavigationSourceConfiguration<TTargetType>The target navigation source (entity set) for the binding.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
A configuration object that can be used to further configure the relationship further.
Type Parameters
- TTargetType
The target navigation source type.
- TDerivedEntityType
The target entity type.
Return to top
NavigationSourceConfiguration<TEntityType>.HasManyBinding<TTargetType, TDerivedEntityType> Method (Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>>, String)
Configures an one-to-many relationship from this entity type and binds the corresponding navigation property to the given entity set.
Syntax
public NavigationPropertyBindingConfiguration HasManyBinding<TTargetType, TDerivedEntityType>(
Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>>> navigationExpression,
string entitySetName
)
where TTargetType : class
where TDerivedEntityType : class, TEntityType
public:
generic<typename TTargetType, typename TDerivedEntityType>
where TTargetType : ref class
where TDerivedEntityType : ref class, TEntityType
NavigationPropertyBindingConfiguration^ HasManyBinding(
Expression<Func<TDerivedEntityType, IEnumerable<TTargetType>^>^>^ navigationExpression,
String^ entitySetName
)
member HasManyBinding<'TTargetType, 'TDerivedEntityType when 'TTargetType : not struct when 'TDerivedEntityType : not struct and 'TEntityType> :
navigationExpression:Expression<Func<'TDerivedEntityType, IEnumerable<'TTargetType>>> *
entitySetName:string -> NavigationPropertyBindingConfiguration
Public Function HasManyBinding(Of TTargetType As Class, TDerivedEntityType As { Class, TEntityType }) (
navigationExpression As Expression(Of Func(Of TDerivedEntityType, IEnumerable(Of TTargetType))),
entitySetName As String
) As NavigationPropertyBindingConfiguration
Parameters
navigationExpression
Type: System.Linq.Expressions.Expression<Func<TDerivedEntityType, IEnumerable<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
Type: System.StringThe target navigation source (entity set) name for the binding.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
A configuration object that can be used to further configure the relationship further.
Type Parameters
- TTargetType
The target navigation source type.
- TDerivedEntityType
The target entity type.
Return to top