EntitySetConfiguration.FindBinding Method
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.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
EntitySetConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top
EntitySetConfiguration.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.Http.OData.Builder.NavigationPropertyConfigurationThe navigation property.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.
Return to top
EntitySetConfiguration.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
navigationConfiguration
Type: System.Web.Http.OData.Builder.NavigationPropertyConfigurationThe navigation property.
autoCreate
Type: System.BooleanTells whether the binding should be auto created if it does not exist.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration so that it can be further configured.
Return to top
EntitySetConfiguration.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.Http.OData.Builder.NavigationPropertyBindingConfiguration
The NavigationPropertyBindingConfiguration.
Return to top