NavigationSourceConfiguration<TEntityType>.HasManyBinding Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
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.
public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType,TDerivedEntityType> (System.Linq.Expressions.Expression<Func<TDerivedEntityType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<TTargetType> targetEntitySet) where TTargetType : class where TDerivedEntityType : class, TEntityType;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<#'EntityType, seq<'argetType>>> * Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<'argetType (requires 'argetType : null)> -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class, TDerivedEntityType As Class) (navigationExpression As Expression(Of Func(Of TDerivedEntityType, IEnumerable(Of 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,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
- 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
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.
public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType,TDerivedEntityType> (System.Linq.Expressions.Expression<Func<TDerivedEntityType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, string entitySetName) where TTargetType : class where TDerivedEntityType : class, TEntityType;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<#'EntityType, seq<'argetType>>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class, TDerivedEntityType As Class) (navigationExpression As Expression(Of Func(Of TDerivedEntityType, IEnumerable(Of TTargetType))), entitySetName As String) As NavigationPropertyBindingConfiguration
Type Parameters
- TTargetType
The target navigation source type.
- TDerivedEntityType
The target entity type.
Parameters
- navigationExpression
- 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
- 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
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.
public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType> (System.Linq.Expressions.Expression<Func<TEntityType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<TTargetType> targetEntitySet) where TTargetType : class;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<'EntityType, seq<'argetType>>> * Microsoft.AspNet.OData.Builder.NavigationSourceConfiguration<'argetType (requires 'argetType : null)> -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class) (navigationExpression As Expression(Of Func(Of TEntityType, IEnumerable(Of TTargetType))), targetEntitySet As NavigationSourceConfiguration(Of TTargetType)) As NavigationPropertyBindingConfiguration
Type Parameters
- TTargetType
The target navigation source type.
Parameters
- navigationExpression
- 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
- 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
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.
public Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration HasManyBinding<TTargetType> (System.Linq.Expressions.Expression<Func<TEntityType,System.Collections.Generic.IEnumerable<TTargetType>>> navigationExpression, string entitySetName) where TTargetType : class;
member this.HasManyBinding : System.Linq.Expressions.Expression<Func<'EntityType, seq<'argetType>>> * string -> Microsoft.AspNet.OData.Builder.NavigationPropertyBindingConfiguration (requires 'argetType : null)
Public Function HasManyBinding(Of TTargetType As Class) (navigationExpression As Expression(Of Func(Of TEntityType, IEnumerable(Of TTargetType))), entitySetName As String) As NavigationPropertyBindingConfiguration
Type Parameters
- TTargetType
The target navigation source type.
Parameters
- navigationExpression
- 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
- String
The target navigation source (entity set) name for the binding.
Returns
A configuration object that can be used to further configure the relationship.