Click or drag to resize
EF Visual Editor

Association Class

DomainRelationship Association Associations between Classes.
Inheritance Hierarchy
SystemObject
  ModelElement
    ElementLink
      Sawczyn.EFDesigner.EFModelAssociation
        Sawczyn.EFDesigner.EFModelBidirectionalAssociation
        Sawczyn.EFDesigner.EFModelUnidirectionalAssociation

Namespace:  Sawczyn.EFDesigner.EFModel
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public abstract class Association : ElementLink
Request Example View Source

The Association type exposes the following members.

Properties
  NameDescription
Public propertyCollectionClass
Public propertyDependent
Gets the dependent ModelClass of this association, if any
Public propertyFKPropertyName
Gets or sets the value of FKPropertyName domain property. Name of property holding foreign key value for this association
Public propertyForeignKeyLocation
Gets or sets the value of ForeignKeyLocation domain property. Which class should hold the foreign key for this relationship
Public propertyJoinTableName
Gets or sets the value of JoinTableName domain property. Optional name of the database table used to join the two end classes for many-to-many associations. If empty, a reasonable default name will be used.
Public propertyLinkedElements (Inherited from ElementLink.)
Public propertyName
Gets or sets the value of Name domain property. Solely for display in the object list of the VStudio property window
Public propertyPartition (Inherited from ModelElement.)
Public propertyPersistent
Gets or sets the value of Persistent domain property. If false, this is a transient association not stored in the database but instead created in code
Public propertyPrincipal
Gets the principal ModelClass of this association, if any
Public propertySource
DomainRole Source
Public propertySourceDeleteAction
Gets or sets the value of SourceDeleteAction domain property. The action to take when an entity on this end is deleted.
Public propertySourceMultiplicity
Gets or sets the value of SourceMultiplicity domain property. The allowed number of entities at this end of the association
Public propertySourceRole
Gets or sets the value of SourceRole domain property. Which object(s) in this association is/are the principal object(s)?
Public propertyStore (Inherited from ModelElement.)
Public propertySummary
Gets or sets the value of Summary domain property. Brief code documentation
Public propertyTarget
DomainRole Target
Public propertyTargetCustomAttributes
Gets or sets the value of TargetCustomAttributes domain property. Any custom attributes to be generated for the target property. Will be passed through as entered.
Public propertyTargetDeleteAction
Gets or sets the value of TargetDeleteAction domain property. The action to take when an entity on this end is deleted.
Public propertyTargetDescription
Gets or sets the value of TargetDescription domain property. Detailed code documentation for this end of the association
Public propertyTargetImplementNotify
Gets or sets the value of TargetImplementNotify domain property. Should this end participate in INotifyPropertyChanged activities? Only valid for non-collection targets.
Public propertyTargetMultiplicity
Gets or sets the value of TargetMultiplicity domain property. The allowed number of entities at this end of the association
Public propertyTargetPropertyName
Gets or sets the value of TargetPropertyName domain property. Name of the entity property that returns the value at this end
Public propertyTargetRole
Gets or sets the value of TargetRole domain property. Which object(s) in this association is/are the dependent object(s)?
Public propertyTargetSummary
Gets or sets the value of TargetSummary domain property. Short code documentation for this end of the association
Top
Methods
  NameDescription
Public methodGetDisplayText
How this association should be shown in string representation
Public methodGetDomainClass (Inherited from ModelElement.)
Public methodGetDomainRelationship (Inherited from ElementLink.)
Public methodGetForeignKeyPropertyNames
Gets the individual foreign key property names defined in the FKPropertyName property
Public methodStatic memberGetLinks
Get any Association links between a given ModelClass and a ModelClass.
Public methodStatic memberGetLinksToSources
Get the list of Association links to a ModelClass.
Public methodStatic memberGetLinksToTargets
Get the list of Association links to a ModelClass.
Public methodStatic memberGetSources
Gets a list of Sources.
Public methodStatic memberGetTargets
Gets a list of Targets.
Top
Extension Methods
  NameDescription
Public Extension MethodGetActiveDiagram (Defined by ModelElementExtensions.)
Public Extension MethodGetCompartment
Gets the named compartment in this element
(Defined by ModelElementExtensions.)
Public Extension MethodGetDisplayText (Defined by ModelElementExtensions.)
Public Extension MethodGetFirstShapeElement (Defined by ModelElementExtensions.)
Public Extension MethodInvalidateDiagrams
Causes all diagrams to redraw
(Defined by ModelElementExtensions.)
Public Extension MethodIsLoading (Defined by ModelElementExtensions.)
Public Extension MethodLocateInDiagram (Defined by ModelElementExtensions.)
Public Extension MethodRedraw (Defined by ModelElementExtensions.)
Top
See Also