EdmRelationshipNavigationPropertyAttribute Constructor (String, String, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the EdmRelationshipNavigationPropertyAttribute class.

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

public EdmRelationshipNavigationPropertyAttribute(
	string relationshipNamespaceName,
	string relationshipName,
	string targetRoleName
)

Parameters

relationshipNamespaceName
Type: System.String

The namespace name of the relationship property.

relationshipName
Type: System.String

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

targetRoleName
Type: System.String

The role name at the other end of the relationship.

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.

.NET Framework
Available since 3.5
Return to top
Show: