Edit

Share via


EdmRelationshipNavigationPropertyAttribute(String, String, String) Constructor

Definition

Initializes a new instance of the EdmRelationshipNavigationPropertyAttribute class.

public:
 EdmRelationshipNavigationPropertyAttribute(System::String ^ relationshipNamespaceName, System::String ^ relationshipName, System::String ^ targetRoleName);
public EdmRelationshipNavigationPropertyAttribute (string relationshipNamespaceName, string relationshipName, string targetRoleName);
new System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute : string * string * string -> System.Data.Objects.DataClasses.EdmRelationshipNavigationPropertyAttribute
Public Sub New (relationshipNamespaceName As String, relationshipName As String, targetRoleName As String)

Parameters

relationshipNamespaceName
String

The namespace name of the relationship property.

relationshipName
String

The name of the relationship. The relationship name is not namespace qualified.

targetRoleName
String

The role name at the other end of the relationship.

Remarks

The relationship name should not contain a namespace. If you add the namespace to the relationship name, for example 'MyNamespace.MyRelationship', an error will occur.

Applies to