public static void SetBarkerErModel(BinaryAssociation element, BarkerErModel newBarkerErModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, BinaryAssociationDomainRoleId, newBarkerErModel); }
public static BarkerErModel GetBarkerErModel(BinaryAssociation element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, BinaryAssociationDomainRoleId) as BarkerErModel; }
/// <summary> /// Constructor /// Creates a BarkerErModelContainsBinaryAssociation link in the same Partition as the given BarkerErModel /// </summary> /// <param name="source">BarkerErModel to use as the source of the relationship.</param> /// <param name="target">BinaryAssociation to use as the target of the relationship.</param> public BarkerErModelContainsBinaryAssociation(BarkerErModel source, BinaryAssociation target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(BarkerErModelContainsBinaryAssociation.BarkerErModelDomainRoleId, source), new DslModeling::RoleAssignment(BarkerErModelContainsBinaryAssociation.BinaryAssociationDomainRoleId, target)}, null) { }
public static DslModeling::LinkedElementCollection<Role> GetRoleCollection(BinaryAssociation element) { return new DslModeling::LinkedElementCollection<Role>(element, BinaryAssociationDomainRoleId); }
public static void SetBinaryAssociation(Role element, BinaryAssociation newBinaryAssociation) { DslModeling::DomainRoleInfo.SetLinkedElement(element, RoleDomainRoleId, newBinaryAssociation); }
/// <summary> /// Constructor /// Creates a BinaryAssociationContainsRole link in the same Partition as the given BinaryAssociation /// </summary> /// <param name="source">BinaryAssociation to use as the source of the relationship.</param> /// <param name="target">Role to use as the target of the relationship.</param> public BinaryAssociationContainsRole(BinaryAssociation source, Role target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(BinaryAssociationContainsRole.BinaryAssociationDomainRoleId, source), new DslModeling::RoleAssignment(BinaryAssociationContainsRole.RoleDomainRoleId, target)}, null) { }