RelatedEnd::TargetRoleName Property

 

Gets the role name at the target end of the relationship.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
property String^ TargetRoleName {
	virtual String^ get() sealed;
}

Property Value

Type: System::String^

A String that is the role name.

The role name is specified by the Role attribute of the End element in the association that defines this relationship in the conceptual model. For more information, see Association Element (CSDL).

The example in this topic is based on the AdventureWorks Sales Model. The example adds new SalesOrderHeader entities to the Contact entity. Then it gets all related ends from the Contact entity and displays relationship name, source role name, and target role name for each related end.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: