EntitySetConfiguration.AddBinding Method (NavigationPropertyConfiguration, EntitySetConfiguration)
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
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 Overridable Function AddBinding (
navigationConfiguration As NavigationPropertyConfiguration,
targetEntitySet As EntitySetConfiguration
) As NavigationPropertyBindingConfiguration
Parameters
navigationConfiguration
Type: System.Web.Http.OData.Builder.NavigationPropertyConfigurationThe navigation property.
targetEntitySet
Type: System.Web.Http.OData.Builder.EntitySetConfigurationThe target entity set.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.
See Also
EntitySetConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top