コード例 #1
0
 public static DslModeling::LinkedElementCollection <Node> GetElements(BotFrameworkModel element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <Node>, Node>(element, BotFrameworkModelDomainRoleId));
 }
コード例 #2
0
 /// <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)
 {
 }
コード例 #3
0
 public static void SetBotFrameworkModel(Node element, BotFrameworkModel newBotFrameworkModel)
 {
     DslModeling::DomainRoleInfo.SetLinkedElement(element, ElementDomainRoleId, newBotFrameworkModel);
 }