public static DslModeling::LinkedElementCollection <ExampleElement> GetElements(ExampleModel element) { return(GetRoleCollection <DslModeling::LinkedElementCollection <ExampleElement>, ExampleElement>(element, ExampleModelDomainRoleId)); }
/// <summary> /// Constructor /// Creates a ExampleModelHasElements link in the same Partition as the given ExampleModel /// </summary> /// <param name="source">ExampleModel to use as the source of the relationship.</param> /// <param name="target">ExampleElement to use as the target of the relationship.</param> public ExampleModelHasElements(ExampleModel source, ExampleElement target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(ExampleModelHasElements.ExampleModelDomainRoleId, source), new DslModeling::RoleAssignment(ExampleModelHasElements.ElementDomainRoleId, target) }, null) { }
public static void SetExampleModel(ExampleElement element, ExampleModel newExampleModel) { DslModeling::DomainRoleInfo.SetLinkedElement(element, ElementDomainRoleId, newExampleModel); }