NavigationProperty Element (CSDL)
The NavigationProperty element defines an end point of a relationship between two tables.
Warning
This element is for reporting and cannot be modified or manipulated.
The NavigationProperty element can have the following child elements (in the order listed):
Documentation Element
Role Element
End Element
Applicable Attributes
The following table lists the attributes found on the NavigationProperty element.
Attribute Name |
Is Required |
Value |
---|---|---|
Documentation |
No |
An optional description of the relationship end and its use in the model. |
ContextualNameRule |
No |
A name for the relationship end that can be applied in a particular view or role. |
Example
The following example shows a navigation property that describes the link between the Product SubCategory table and the Product table.
<NavigationProperty
Name="Product_Sub_Category_ProductSubcategoryKey"
Relationship="Sandbox.Product_Product_Sub_Category_Product_Sub_Category_ProductSubcategoryKey" FromRole="Product_ProductSubcategoryKey"
ToRole="Product_Sub_Category_ProductSubcategoryKey">
<bi:NavigationProperty
ReferenceName="Product Sub-Category_ProductSubcategoryKey" />
</NavigationProperty>