Adds a navigation property to the entity type.

Namespace: HuagatiEDMXTools
Assembly: HuagatiEDMXTools (in HuagatiEDMXTools.dll) Version: 2.21.4044.31765

Syntax

C#
public NavigationProperty AddNavigationMember(
	string navigationPropertyName,
	ModelAssociationSet modelAssociationSet,
	string fromRoleName,
	string toRoleName
)
Visual Basic
Public Function AddNavigationMember ( _
	navigationPropertyName As String, _
	modelAssociationSet As ModelAssociationSet, _
	fromRoleName As String, _
	toRoleName As String _
) As NavigationProperty
Visual C++
public:
NavigationProperty^ AddNavigationMember(
	String^ navigationPropertyName, 
	ModelAssociationSet^ modelAssociationSet, 
	String^ fromRoleName, 
	String^ toRoleName
)

Parameters

navigationPropertyName
Type: System..::..String
Name of the navigation property.
modelAssociationSet
Type: HuagatiEDMXTools..::..ModelAssociationSet
Association set that this navigation property is based on.
fromRoleName
Type: System..::..String
From-role. Normally the same as the from-role for the associationset, but can be reversed for recursive associations.To-role. Normally the same as the To-role for the associationset, but can be reversed for recursive associations.
toRoleName
Type: System..::..String

[Missing <param name="toRoleName"/> documentation for "M:HuagatiEDMXTools.ModelEntityType.AddNavigationMember(System.String,HuagatiEDMXTools.ModelAssociationSet,System.String,System.String)"]

Return Value

A NavigationProperty object.

See Also