Ejemplo n.º 1
0
        public bool Update()
        {
            // add ClassifierGUID to target action
            string updateStr = $@"
                        update t_xref 
                            set Description = '{GetValueEx()}'
                            where xrefid = '{Guid}'";

            Rep.Execute(updateStr);
            return(true);
        }
Ejemplo n.º 2
0
        public bool Create()
        {
            // set CallOperation
            // TYPE = ActionKind
            this.Guid = $@"{{{System.Guid.NewGuid()}}}";

            string insertIntoTXref = $@"
insert into t_xref 
       (XrefID,            Name,               Type,              Visibility, Namespace, Requirement, [Constraint], Behavior, Partition, Description, Client, Supplier, Link)
        VALUES('{this.Guid}', 'CustomProperties', 'element property','Public', '','','', '',0, 
           '{{{GetValueEx()}}}', '{El.ElementGUID}', null,'')";

            Rep.Execute(insertIntoTXref);

            return(true);
        }