当前位置: 首页>>代码示例>>C#>>正文


C# EA.Execute方法代码示例

本文整理汇总了C#中EA.Execute方法的典型用法代码示例。如果您正苦于以下问题:C# EA.Execute方法的具体用法?C# EA.Execute怎么用?C# EA.Execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EA的用法示例。


在下文中一共展示了EA.Execute方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateCallAction

        // ReSharper disable once UnusedMethodReturnValue.Global
        public static bool CreateCallAction(EA.Repository rep, EA.Element action, EA.Method method)
        {
            // add ClassifierGUID to target action
            string updateStr = @"update t_object set classifier_GUID = '" + method.MethodGUID +
                       "' where ea_guid = '" + action.ElementGUID + "' ";
            rep.Execute(updateStr);

            // set CallOperation
            string callOperationProperty = "@[email protected][email protected];@[email protected];@[email protected];@[email protected];@ENDPROP;";
            Guid g = Guid.NewGuid();
            string xrefid = "{" + g + "}";
            string insertIntoTXref = @"insert into t_xref 
                (XrefID,            Name,               Type,              Visibility, Namespace, Requirement, [Constraint], Behavior, Partition, Description, Client, Supplier, Link)
                VALUES('" + xrefid + "', 'CustomProperties', 'element property','Public', '','','', '',0, '" + callOperationProperty + "', '" + action.ElementGUID + "', null,'')";
                rep.Execute(insertIntoTXref);

            // Link Call Operation to operation
                g = Guid.NewGuid();
                xrefid = "{" + g + "}";
                insertIntoTXref = @"insert into t_xref 
                (XrefID,            Name,               Type,              Visibility, Namespace, Requirement, [Constraint], Behavior, Partition, Description, Client, Supplier, Link)
                VALUES('" + xrefid + "', 'MOFProps', 'element property','Public', '','','', 'target',0, '  null ', '" + method.MethodGUID + "', null,'')";
                //rep.Execute(insertIntoT_xref);
              
            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:27,代码来源:Action.cs

示例2: SetDiagramObjectLabel

        public static bool SetDiagramObjectLabel(EA.Repository rep, int objectId, int diagramId, int instanceId, string s)
        {

            string updateStr = @"update t_diagramObjects set ObjectStyle = '" + s + "' " +
           " where Object_ID = " + objectId + " AND "+
                " Diagram_ID = " + diagramId + " AND " +
                " Instance_ID = " + instanceId ;
               
            rep.Execute(updateStr);


            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:13,代码来源:Util.cs

示例3: SetElementHasAttchaedLink

        public static bool SetElementHasAttchaedLink(EA.Repository rep, EA.Element el, EA.Element elNote)
        {
            string updateStr = @"update t_object set pdata1 = 'Element Note', pdata2 = '" + el.ElementID  + "', pdata4='Yes' " +
           " where object_ID = " + elNote.ElementID ;
            rep.Execute(updateStr);


            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:9,代码来源:Util.cs

示例4: SetBehaviorForOperation

        public static bool SetBehaviorForOperation(EA.Repository rep, Method op, EA.Element act)
        {
            
            string updateStr = @"update t_operation set behaviour = '" + act.ElementGUID + "' " +
           " where operationID = " + op.MethodID;
            rep.Execute(updateStr);


            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:10,代码来源:Util.cs

示例5: SetConnectorGuard

        public static bool SetConnectorGuard(EA.Repository rep, int connectorId, string connectorGuard)
        {

            string updateStr = @"update t_connector set pdata2 = '" + connectorGuard + "' " +
           " where Connector_Id = " + connectorId;
            rep.Execute(updateStr);


            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:10,代码来源:Util.cs

示例6: SetVcFlags

 public static bool SetVcFlags (EA.Repository rep, EA.Package pkg, string flags)
 {
     string updateStr = @"update t_package set packageflags = '" + flags +"' " +
                " where package_ID = " + pkg.PackageID;
     rep.Execute(updateStr);
     return true;
 }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:7,代码来源:Util.cs

示例7: SetActivityCompositeDiagram

 public static bool SetActivityCompositeDiagram(EA.Repository rep, EA.Element el, string s)
 {
     string updateStr = @"update t_object set pdata1 = '"+ s +"', ntype = 8 " +
                " where object_ID = " + el.ElementID;
     rep.Execute(updateStr);
     return true;
 }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:7,代码来源:Util.cs

示例8: SetElementPdata1

 public static bool SetElementPdata1(EA.Repository rep, EA.Element el, string s)
 {
     string updateStr = @"update t_object set pdata1 = '" + s + "' " +
                " where object_ID = " + el.ElementID;
     rep.Execute(updateStr);
     return true;
 }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:7,代码来源:Util.cs

示例9: SetFrameLinksToDiagram

 public static bool SetFrameLinksToDiagram(EA.Repository rep, EA.Element frm, EA.Diagram dia)
 {
     string updateStr = @"update t_object set pdata1 = "+ dia.DiagramID + 
                " where object_ID = " + frm.ElementID;
     rep.Execute(updateStr);
     return true;
 }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:7,代码来源:Util.cs

示例10: SetShowBehaviorInDiagram

        // set "ShowBeh=1; in operation field StyleEx

        public static bool SetShowBehaviorInDiagram(EA.Repository rep, Method m)
        {
            string updateStr = @"update t_operation set StyleEx = 'ShowBeh=1;'"  +
                       " where operationID = " + m.MethodID;
            rep.Execute(updateStr);
            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:9,代码来源:Util.cs

示例11: AddSequenceNumber

        public static void AddSequenceNumber (EA.Repository rep, EA.Diagram dia) {
             
            string updateStr = @"update t_DiagramObjects set sequence = sequence + 1 "+
                       " where diagram_id = " + dia.DiagramID; 

            rep.Execute(updateStr);
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:7,代码来源:Util.cs

示例12: SetXmlPath

        public static bool SetXmlPath(EA.Repository rep, string guid, string path)
        {

            string updateStr = @"update t_package set XMLPath = '" + path +
           "' where ea_guid = '" + guid + "' ";
                
            rep.Execute(updateStr);


            return true;
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:11,代码来源:Util.cs

示例13: SetSequenceNumber

        public static void SetSequenceNumber(EA.Repository rep, EA.Diagram dia, 
            EA.DiagramObject obj, string sequence )
        {
            if (obj != null)
            {

                string updateStr = @"update t_DiagramObjects set sequence = " + sequence +
                                   " where diagram_id = " + dia.DiagramID +
                                   " AND instance_id = " + obj.InstanceID;

                rep.Execute(updateStr);
            }
        }
开发者ID:Helmut-Ortmann,项目名称:EnterpriseArchitect_hoTools,代码行数:13,代码来源:Util.cs


注:本文中的EA.Execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。