public static void SetGroup(BaseScheduledTask element, Group newGroup) { DslModeling::DomainRoleInfo.SetLinkedElement(element, ElementDomainRoleId, newGroup); }
/// <summary> /// Constructor /// Creates a GroupHasScheduledTasks link in the same Partition as the given Group /// </summary> /// <param name="source">Group to use as the source of the relationship.</param> /// <param name="target">BaseScheduledTask to use as the target of the relationship.</param> public GroupHasScheduledTasks(Group source, BaseScheduledTask target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(GroupHasScheduledTasks.GroupDomainRoleId, source), new DslModeling::RoleAssignment(GroupHasScheduledTasks.ElementDomainRoleId, target)}, null) { }
public static Group GetGroup(BaseScheduledTask element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, ElementDomainRoleId) as Group; }