Share via


EdmEntityType.AddBidirectionalNavigation Method

Definition

Creates and adds a navigation property to this type and adds its navigation partner to the navigation target type.

public Microsoft.OData.Edm.EdmNavigationProperty AddBidirectionalNavigation (Microsoft.OData.Edm.EdmNavigationPropertyInfo propertyInfo, Microsoft.OData.Edm.EdmNavigationPropertyInfo partnerInfo);
member this.AddBidirectionalNavigation : Microsoft.OData.Edm.EdmNavigationPropertyInfo * Microsoft.OData.Edm.EdmNavigationPropertyInfo -> Microsoft.OData.Edm.EdmNavigationProperty
Public Function AddBidirectionalNavigation (propertyInfo As EdmNavigationPropertyInfo, partnerInfo As EdmNavigationPropertyInfo) As EdmNavigationProperty

Parameters

propertyInfo
EdmNavigationPropertyInfo

Information to create the navigation property.

partnerInfo
EdmNavigationPropertyInfo

Information to create the partner navigation property.

Returns

Created navigation property.

Applies to