Partilhar via


NavigationPropertyConfiguration.HasConstraint Method

 

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

Overload List

Name Description
System_CAPS_pubmethod HasConstraint(KeyValuePair<PropertyInfo, PropertyInfo>)

Configures the referential constraint for the navigation property. The dependent property will be added as non-nullable primitive property into the declaring entity type if it's not in the entity type.

System_CAPS_pubmethod HasConstraint(PropertyInfo, PropertyInfo)

See Also

NavigationPropertyConfiguration Class
System.Web.Http.OData.Builder Namespace

Return to top

Configures the referential constraint for the navigation property. The dependent property will be added as non-nullable primitive property into the declaring entity type if it's not in the entity type.

Syntax

public NavigationPropertyConfiguration HasConstraint(
    KeyValuePair<PropertyInfo, PropertyInfo> constraint
)
public:
NavigationPropertyConfiguration^ HasConstraint(
    KeyValuePair<PropertyInfo^, PropertyInfo^> constraint
)
member HasConstraint : 
        constraint:KeyValuePair<PropertyInfo, PropertyInfo> -> NavigationPropertyConfiguration
Public Function HasConstraint (
    constraint As KeyValuePair(Of PropertyInfo, PropertyInfo)
) As NavigationPropertyConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration

Return to top

Syntax

public NavigationPropertyConfiguration HasConstraint(
    PropertyInfo dependentPropertyInfo,
    PropertyInfo principalPropertyInfo
)
public:
NavigationPropertyConfiguration^ HasConstraint(
    PropertyInfo^ dependentPropertyInfo,
    PropertyInfo^ principalPropertyInfo
)
member HasConstraint : 
        dependentPropertyInfo:PropertyInfo *
        principalPropertyInfo:PropertyInfo -> NavigationPropertyConfiguration
Public Function HasConstraint (
    dependentPropertyInfo As PropertyInfo,
    principalPropertyInfo As PropertyInfo
) As NavigationPropertyConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration

Return to top