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