NavigationSourceConfiguration.FindBinding Method
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
FindBinding(NavigationPropertyConfiguration) | Finds the binding for the given navigation property and tries to create it if it doesnot exist. |
|
FindBinding(NavigationPropertyConfiguration, Boolean) | Finds the binding for the given navigation property. |
|
FindBinding(String) | Gets the NavigationPropertyBindingConfiguration for the navigation property with the given name. |
See Also
NavigationSourceConfiguration Class
System.Web.OData.Builder Namespace
Return to top
NavigationSourceConfiguration.FindBinding Method (NavigationPropertyConfiguration)
Finds the binding for the given navigation property and tries to create it if it doesnot exist.
Syntax
public virtual NavigationPropertyBindingConfiguration FindBinding(
NavigationPropertyConfiguration navigationConfiguration
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
NavigationPropertyConfiguration^ navigationConfiguration
)
abstract FindBinding :
navigationConfiguration:NavigationPropertyConfiguration -> NavigationPropertyBindingConfiguration
override FindBinding :
navigationConfiguration:NavigationPropertyConfiguration -> NavigationPropertyBindingConfiguration
Public Overridable Function FindBinding (
navigationConfiguration As NavigationPropertyConfiguration
) As NavigationPropertyBindingConfiguration
Parameters
navigationConfiguration
Type: System.Web.OData.Builder.NavigationPropertyConfigurationThe navigation property.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.
Implements
INavigationSourceConfiguration.FindBinding(NavigationPropertyConfiguration)
Return to top
NavigationSourceConfiguration.FindBinding Method (NavigationPropertyConfiguration, Boolean)
Finds the binding for the given navigation property.
Syntax
public virtual NavigationPropertyBindingConfiguration FindBinding(
NavigationPropertyConfiguration navigationConfiguration,
bool autoCreate
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
NavigationPropertyConfiguration^ navigationConfiguration,
bool autoCreate
)
abstract FindBinding :
navigationConfiguration:NavigationPropertyConfiguration *
autoCreate:bool -> NavigationPropertyBindingConfiguration
override FindBinding :
navigationConfiguration:NavigationPropertyConfiguration *
autoCreate:bool -> NavigationPropertyBindingConfiguration
Public Overridable Function FindBinding (
navigationConfiguration As NavigationPropertyConfiguration,
autoCreate As Boolean
) As NavigationPropertyBindingConfiguration
Parameters
autoCreate
Type: System.BooleanTells whether the binding should be auto created if it does not exist.
navigationConfiguration
Type: System.Web.OData.Builder.NavigationPropertyConfigurationThe navigation property.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.
Implements
INavigationSourceConfiguration.FindBinding(NavigationPropertyConfiguration, Boolean)
Return to top
NavigationSourceConfiguration.FindBinding Method (String)
Gets the NavigationPropertyBindingConfiguration for the navigation property with the given name.
Syntax
public virtual NavigationPropertyBindingConfiguration FindBinding(
string propertyName
)
public:
virtual NavigationPropertyBindingConfiguration^ FindBinding(
String^ propertyName
)
abstract FindBinding :
propertyName:string -> NavigationPropertyBindingConfiguration
override FindBinding :
propertyName:string -> NavigationPropertyBindingConfiguration
Public Overridable Function FindBinding (
propertyName As String
) As NavigationPropertyBindingConfiguration
Parameters
propertyName
Type: System.StringThe name of the navigation property.
Return Value
Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration.
Implements
INavigationSourceConfiguration.FindBinding(String)
Return to top