EdmEntityType.AddUnidirectionalNavigation Method (EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)
Creates and adds a unidirectional navigation property to this type. Navigation property partner is created, but not added to the navigation target type.
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Function AddUnidirectionalNavigation ( _
propertyInfo As EdmNavigationPropertyInfo, _
partnerInfo As EdmNavigationPropertyInfo _
) As EdmNavigationProperty
'Usage
Dim instance As EdmEntityType
Dim propertyInfo As EdmNavigationPropertyInfo
Dim partnerInfo As EdmNavigationPropertyInfo
Dim returnValue As EdmNavigationProperty
returnValue = instance.AddUnidirectionalNavigation(propertyInfo, _
partnerInfo)
public EdmNavigationProperty AddUnidirectionalNavigation(
EdmNavigationPropertyInfo propertyInfo,
EdmNavigationPropertyInfo partnerInfo
)
public:
EdmNavigationProperty^ AddUnidirectionalNavigation(
EdmNavigationPropertyInfo^ propertyInfo,
EdmNavigationPropertyInfo^ partnerInfo
)
member AddUnidirectionalNavigation :
propertyInfo:EdmNavigationPropertyInfo *
partnerInfo:EdmNavigationPropertyInfo -> EdmNavigationProperty
public function AddUnidirectionalNavigation(
propertyInfo : EdmNavigationPropertyInfo,
partnerInfo : EdmNavigationPropertyInfo
) : EdmNavigationProperty
Parameters
- propertyInfo
Type: Microsoft.Data.Edm.Library.EdmNavigationPropertyInfo
The information to create the navigation property.
- partnerInfo
Type: Microsoft.Data.Edm.Library.EdmNavigationPropertyInfo
The information to create the partner navigation property.
Return Value
Type: Microsoft.Data.Edm.Library.EdmNavigationProperty
The created navigation property.