EntitySetConfiguration.AddBinding Method
Binds the given navigation property to the target entity set.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Overridable Function AddBinding ( _
navigationConfiguration As NavigationPropertyConfiguration, _
targetEntitySet As EntitySetConfiguration _
) As NavigationPropertyBindingConfiguration
'Usage
Dim instance As EntitySetConfiguration
Dim navigationConfiguration As NavigationPropertyConfiguration
Dim targetEntitySet As EntitySetConfiguration
Dim returnValue As NavigationPropertyBindingConfiguration
returnValue = instance.AddBinding(navigationConfiguration, _
targetEntitySet)
public virtual NavigationPropertyBindingConfiguration AddBinding(
NavigationPropertyConfiguration navigationConfiguration,
EntitySetConfiguration targetEntitySet
)
public:
virtual NavigationPropertyBindingConfiguration^ AddBinding(
NavigationPropertyConfiguration^ navigationConfiguration,
EntitySetConfiguration^ targetEntitySet
)
abstract AddBinding :
navigationConfiguration:NavigationPropertyConfiguration *
targetEntitySet:EntitySetConfiguration -> NavigationPropertyBindingConfiguration
override AddBinding :
navigationConfiguration:NavigationPropertyConfiguration *
targetEntitySet:EntitySetConfiguration -> NavigationPropertyBindingConfiguration
public function AddBinding(
navigationConfiguration : NavigationPropertyConfiguration,
targetEntitySet : EntitySetConfiguration
) : NavigationPropertyBindingConfiguration
Parameters
- navigationConfiguration
Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration
The navigation property.
- targetEntitySet
Type: System.Web.Http.OData.Builder.EntitySetConfiguration
The target entity set.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.