public static DslModeling::LinkedElementCollection <DomainClass2> GetDomainClass2(DomainModel element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <DomainClass2>, DomainClass2>(element, DomainModelDomainRoleId));
 }
 /// <summary>
 /// Constructor
 /// Creates a DomainModelHasDomainClass2 link in the same Partition as the given DomainModel
 /// </summary>
 /// <param name="source">DomainModel to use as the source of the relationship.</param>
 /// <param name="target">DomainClass2 to use as the target of the relationship.</param>
 public DomainModelHasDomainClass2(DomainModel source, DomainClass2 target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(DomainModelHasDomainClass2.DomainModelDomainRoleId, source), new DslModeling::RoleAssignment(DomainModelHasDomainClass2.DomainClass2DomainRoleId, target) }, Tum.PDE.VSPluginDSL.VSPluginDSLDomainModelIdProvider.Instance.CreateId())
 {
 }
 public static void SetDomainModel(DomainClass2 element, DomainModel newDomainModel)
 {
     DslModeling::DomainRoleInfo.SetLinkedElement(element, DomainClass2DomainRoleId, newDomainModel);
 }