EdmRelationshipAttribute Class

Definition

Defines a relationship between two entity types based on an association in the conceptual model.

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class EdmRelationshipAttribute : Attribute
type EdmRelationshipAttribute = class
    inherit Attribute
Public NotInheritable Class EdmRelationshipAttribute
Inherits Attribute
Inheritance
EdmRelationshipAttribute
Attributes

Constructors

EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type)

Creates an instance of the EdmRelationshipAttribute class.

EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type, Boolean)

Initializes a new instance of the EdmRelationshipAttribute class.

Properties

IsForeignKey

Gets a Boolean value that indicates whether the relationship is based on the foreign key value.

RelationshipName

Name of the relationship.

RelationshipNamespaceName

The namespace for the relationship.

Role1Multiplicity

Multiplicity at one end of the relationship.

Role1Name

Name of the role at one end of the relationship.

Role1Type

Type of the entity at one end of the relationship.

Role2Multiplicity

Multiplicity at the other end of the relationship.

Role2Name

Name of the role at the other end of the relationship.

Role2Type

Type of the entity at the other end of the relationship.

Applies to