Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace:   System.Web.Http.OData.Builder
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
| .jpeg) | 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. | 
| .jpeg) | HasConstraint(PropertyInfo, PropertyInfo) | 
See Also
NavigationPropertyConfiguration Class
System.Web.Http.OData.Builder Namespace
Return to top
NavigationPropertyConfiguration.HasConstraint Method (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.
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
- constraint 
 Type: System.Collections.Generic.KeyValuePair<PropertyInfo, PropertyInfo>- The dependent and principal property info pair. 
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration
Return to top
NavigationPropertyConfiguration.HasConstraint Method (PropertyInfo, PropertyInfo)
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
- dependentPropertyInfo 
 Type: System.Reflection.PropertyInfo- The dependent property info for the referential constraint. 
- principalPropertyInfo 
 Type: System.Reflection.PropertyInfo- The principal property info for the referential constraint. 
Return Value
Type: System.Web.Http.OData.Builder.NavigationPropertyConfiguration
Return to top