Class AssociationExtensions
Inheritance
System.Object
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:System.Dynamic.ExpandoObject
Assembly:SilverDawn.SilverModel.UML.dll
Syntax
public static class AssociationExtensions
Methods
CreateAssociation(IClassifier, IClassifier, AssociationType)
Creates and Association between two classifiers
Declaration
public static IAssociation CreateAssociation(this IClassifier firstElement, IClassifier secondElement, AssociationType associationType)
Parameters
Type | Name | Description |
---|---|---|
IClassifier | firstElement | The starting classifier of the relationship |
IClassifier | secondElement | The ending classifier of the relationship |
AssociationType | associationType | What type of association it is e.g. Association,Aggregation,Composition |
Returns
Type | Description |
---|---|
IAssociation |
GetSourceMemberEnd(IAssociation)
Get the source(start) of the association
Declaration
public static IProperty GetSourceMemberEnd(this IAssociation association)
Parameters
Type | Name | Description |
---|---|---|
IAssociation | association |
Returns
Type | Description |
---|---|
IProperty |
GetTargetMemberEnd(IAssociation)
Gets the target(end) of the association
Declaration
public static IProperty GetTargetMemberEnd(this IAssociation association)
Parameters
Type | Name | Description |
---|---|---|
IAssociation | association |
Returns
Type | Description |
---|---|
IProperty |