EntitySetConfiguration<TEntityType>.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 NavigationPropertyBindingConfiguration for the given navigation property and creates it if it does not exist. |
|
FindBinding(NavigationPropertyConfiguration, Boolean) | Finds the NavigationPropertyBindingConfiguration for the given navigation property. |
|
FindBinding(String) | Finds the NavigationPropertyBindingConfiguration for the navigation property with the given name. |
See Also
EntitySetConfiguration<TEntityType> Class
System.Web.Http.OData.Builder Namespace
Return to top
EntitySetConfiguration<TEntityType>.FindBinding Method (NavigationPropertyConfiguration)
Finds the NavigationPropertyBindingConfiguration for the given navigation property and creates it if it does not exist.
Syntax
public NavigationPropertyBindingConfiguration FindBinding(
NavigationPropertyConfiguration navigationConfiguration
)
public:
NavigationPropertyBindingConfiguration^ FindBinding(
NavigationPropertyConfiguration^ navigationConfiguration
)
member FindBinding :
navigationConfiguration:NavigationPropertyConfiguration -> NavigationPropertyBindingConfiguration
Public 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 binding if found else the created binding.
Return to top
EntitySetConfiguration<TEntityType>.FindBinding Method (NavigationPropertyConfiguration, Boolean)
Finds the NavigationPropertyBindingConfiguration for the given navigation property.
Syntax
public NavigationPropertyBindingConfiguration FindBinding(
NavigationPropertyConfiguration navigationConfiguration,
bool autoCreate
)
public:
NavigationPropertyBindingConfiguration^ FindBinding(
NavigationPropertyConfiguration^ navigationConfiguration,
bool autoCreate
)
member FindBinding :
navigationConfiguration:NavigationPropertyConfiguration *
autoCreate:bool -> NavigationPropertyBindingConfiguration
Public Function FindBinding (
navigationConfiguration As NavigationPropertyConfiguration,
autoCreate As Boolean
) As NavigationPropertyBindingConfiguration
Parameters
navigationConfiguration
Type: System.Web.Http.OData.Builder.NavigationPropertyConfigurationThe navigation property.
autoCreate
Type: System.BooleanRepresents a value specifying if the binding should be created if it is not found.
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyBindingConfiguration
The binding if found.
Return to top
EntitySetConfiguration<TEntityType>.FindBinding Method (String)
Finds the NavigationPropertyBindingConfiguration for the navigation property with the given name.
Syntax
public NavigationPropertyBindingConfiguration FindBinding(
string propertyName
)
public:
NavigationPropertyBindingConfiguration^ FindBinding(
String^ propertyName
)
member FindBinding :
propertyName:string -> NavigationPropertyBindingConfiguration
Public 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 binding, if found; otherwise, null.
Return to top