Export (0) Print
Expand All

EdmRelationshipAttribute Class

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

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

[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class EdmRelationshipAttribute : Attribute

This attribute is applied at the assembly level with one instance for each association. There can be multiple attributes of this type in an assembly.

The details for the role of an entity type in a particular association should match the association defined in the conceptual schema.

An association does not define any ordering for the roles. This means that properties that define the related ends of an association can be defined in any order.

System.Object
  System.Attribute
    System.Data.Objects.DataClasses.EdmRelationshipAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft