AssociationType Class

 

Describes an association/relationship between two entities in the conceptual model or a foreign key relationship between two tables in the store model. In the conceptual model the dependant class may or may not define a foreign key property. If a foreign key is defined the IsForeignKey property will be true and the Constraint property will contain details of the foreign keys

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Core.Metadata.Edm.MetadataItem
    System.Data.Entity.Core.Metadata.Edm.GlobalItem
      System.Data.Entity.Core.Metadata.Edm.EdmType
        System.Data.Entity.Core.Metadata.Edm.StructuralType
          System.Data.Entity.Core.Metadata.Edm.EntityTypeBase
            System.Data.Entity.Core.Metadata.Edm.RelationshipType
              System.Data.Entity.Core.Metadata.Edm.AssociationType

[SuppressMessageAttribute("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")]
public class AssociationType : RelationshipType

NameDescription
System_CAPS_pubpropertyAbstract

Gets a value indicating whether this type is abstract or not.(Inherited from EdmType.)

System_CAPS_pubpropertyAssociationEndMembers

Gets the list of ends for this AssociationType.

System_CAPS_pubpropertyBaseType

Gets the base type of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyBuiltInTypeKind

Gets the built-in type kind for this AssociationType.(Overrides MetadataItem.BuiltInTypeKind.)

System_CAPS_pubpropertyConstraint

Gets or sets the referential constraint.

System_CAPS_pubpropertyDocumentation

Gets or sets the documentation associated with this type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyFullName

Gets the full name of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyIsForeignKey

Gets the Boolean property value that specifies whether the column is a foreign key.

System_CAPS_pubpropertyKeyMembers

Gets the list of all the key members for the current entity or relationship type.(Inherited from EntityTypeBase.)

System_CAPS_pubpropertyKeyProperties

Gets the list of all the key properties for this entity type.(Inherited from EntityTypeBase.)

System_CAPS_pubpropertyMembers

Gets the list of members on this type.(Inherited from StructuralType.)

System_CAPS_pubpropertyMetadataProperties

Gets the list of properties of the current type.(Inherited from MetadataItem.)

System_CAPS_pubpropertyName

Gets the name of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyNamespaceName

Gets the namespace of this type.(Inherited from EdmType.)

System_CAPS_pubpropertyReferentialConstraints

Gets the list of constraints for this AssociationType.

System_CAPS_pubpropertyRelationshipEndMembers

Gets the list of ends for this relationship type.(Inherited from RelationshipType.)

NameDescription
System_CAPS_pubmethodAddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.(Inherited from MetadataItem.)

System_CAPS_pubmethodAddKeyMember(EdmMember)

Adds the specified property to the list of keys for the current entity.(Inherited from EntityTypeBase.)

System_CAPS_pubmethodAddMember(EdmMember)

Adds a member to this type(Inherited from StructuralType.)

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, String, Boolean, DataSpace, AssociationEndMember, AssociationEndMember, ReferentialConstraint, IEnumerable<MetadataProperty>)

Creates a read-only AssociationType instance from the specified parameters.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetCollectionType()

Returns an instance of the CollectionType whose element type is this type.(Inherited from EdmType.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveAnnotation(String)

Removes an annotation with the specified name.(Inherited from MetadataItem.)

System_CAPS_pubmethodRemoveMember(EdmMember)

Removes the specified key member from the collection.(Inherited from EntityTypeBase.)

System_CAPS_pubmethodToString()

Returns the full name of this type.(Inherited from EdmType.)

NameDescription
System_CAPS_pubmethodGetDependentEnd()

Retrieves the dependent end of this association, given the following rules in order of priority: 1. If there is a referential constraint defined on the association, this returns the DependentEnd. 2. If the association's multiplicity is 1:1 and OnDelete='Cascade' is defined on the first end, then this returns the second end. If OnDelete='Cascade' is not defined on the first end, this returns the first end. 3. In a 1:* or 0..1:* association, this returns the end with the * multiplicity. 4. In a 0..1:1 association, this returns the end with the 0..1 multiplicity.(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodGetEnd1()

Returns the first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodGetEnd2()

Returns the second AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodGetOtherEnd(AssociationEndMember)

Given an AssociationEndMember of this Association, this method will return the other end participating in the association(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodGetPrincipalEnd()

Retrieves the principal end of this association(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodIsManyToMany()

Determines if an association's multiplicity is *:*(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodIsPKToPK()

Determines if an association is across solely primary keys(Defined by MetadataWorkspaceExtensions.)

System_CAPS_pubmethodNavigate(String, String, DbExpression)

Overloaded. Creates a new DbRelationshipNavigationExpression representing the navigation of a composition or association relationship.(Defined by DbExpressionBuilder.)

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