Share via


NavigationPropertyConfiguration.HasConstraint Method

Definition

Overloads

HasConstraint(KeyValuePair<PropertyInfo,PropertyInfo>)

Configures the referential constraint with the dependent and principal property pair.

HasConstraint(PropertyInfo, PropertyInfo)

Configures the referential constraint with the specified and .

HasConstraint(KeyValuePair<PropertyInfo,PropertyInfo>)

Configures the referential constraint with the dependent and principal property pair.

public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasConstraint (System.Collections.Generic.KeyValuePair<System.Reflection.PropertyInfo,System.Reflection.PropertyInfo> constraint);
member this.HasConstraint : System.Collections.Generic.KeyValuePair<System.Reflection.PropertyInfo, System.Reflection.PropertyInfo> -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
Public Function HasConstraint (constraint As KeyValuePair(Of PropertyInfo, PropertyInfo)) As NavigationPropertyConfiguration

Parameters

constraint
KeyValuePair<PropertyInfo,PropertyInfo>

The dependent and principal property pair.

Returns

Applies to

HasConstraint(PropertyInfo, PropertyInfo)

Configures the referential constraint with the specified and .

public Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration HasConstraint (System.Reflection.PropertyInfo dependentPropertyInfo, System.Reflection.PropertyInfo principalPropertyInfo);
member this.HasConstraint : System.Reflection.PropertyInfo * System.Reflection.PropertyInfo -> Microsoft.AspNet.OData.Builder.NavigationPropertyConfiguration
Public Function HasConstraint (dependentPropertyInfo As PropertyInfo, principalPropertyInfo As PropertyInfo) As NavigationPropertyConfiguration

Parameters

dependentPropertyInfo
PropertyInfo

The dependent property info for the referential constraint.

principalPropertyInfo
PropertyInfo

The principal property info for the referential constraint.

Returns

Applies to