Share via


NavigationSourceConfiguration<TEntityType>.FindBinding Method

 

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration)

Finds the NavigationPropertyBindingConfiguration for the given navigation property and creates it if it does not exist.

System_CAPS_pubmethod FindBinding(NavigationPropertyConfiguration, Boolean)

Finds the NavigationPropertyBindingConfiguration for the given navigation property.

System_CAPS_pubmethod FindBinding(String)

Finds the NavigationPropertyBindingConfiguration for the navigation property with the given name.

See Also

NavigationSourceConfiguration<TEntityType> Class
System.Web.OData.Builder Namespace

Return to top

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

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The binding if found else the created binding.

Return to top

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

  • autoCreate
    Type: System.Boolean

    Represents a value specifying if the binding should be created if it is not found.

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The binding if found.

Return to top

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.String

    The name of the navigation property.

Return Value

Type: System.Web.OData.Builder.NavigationPropertyBindingConfiguration

The binding, if found; otherwise, null.

Return to top