Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Fehma on August 02, 2011, 12:03:53 am
-
Hi there,
I actually created a Class with an Attribute via c# without a Problem.
Now I want to mark this Attribute as Property and also provide the PropertyName.
Any Ideas ?
Greetings
Marcus
-
Marcus,
Do the necessarily in EA, and then check in the database what changed.
That is usually the best way to figure out these things.
Geert
-
Hi Geert ,
thank you very much for your answer. I have actuall tried it and I saw ( your addons helped me a lot :-) ) that the only value it set on t_attribut was GenOption with the value PROPERTY=testContextInstance;
But on EA.Attribut there is now way to set GenOption...
Any Idea ?
Greetings
Marcus
-
Marcus,
I would check the values in Style and StyleEx. If those don't contain the values you are looking for then I'm afraid they only option you have is to go to the database directly.
Use Repository.SQLQuery() for retrieving and Repository.Execute() for updates.
Geert
-
Geert,
again tons of thx for the quick answer..
I guess I have to go for the SQL Solution .
Greetings
Marcus
-
hmmm I found SQlQuery but I can't find Repository.Execute()
Geert any Ideas where I can find the Execute Function ?
Greetings
-
It's there trust me, it's just a hidden operation.
Try it out and you'll see
Geert
-
he he ;D
it is working.....
Tons of thx....
Marcus