Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: GrahamL on June 17, 2021, 07:18:17 pm
-
Hi
I have limited sql experience but have a need to get the access to the t_files table for a give class
I would appreciate some help in getting started
thanks
-
What would you think to find in t_files? I never happend to find anything in there.
q.
-
Hi
I want to get the code generation path
I have this
private string getGenerationPath(EA.Repository Repository, string className)
{
XmlDocument results = new XmlDocument();
string sql = "SELECT File FROM t_files WHERE name = " + className;
string xml = Repository.SQLQuery("SELECT File FROM dbo.t_files WHERE name = Class1");
results.LoadXml(xml);
But when it is executed in my addin I get incorret syntax near the keyword 'File' File
-
Code generation path is found in EA.Element.GenFile
I don't think you'll find anything useful in t_files.
Geert
-
Thanks Geert
-
Well, you asked the very same question and got an answer from me and Eve. Maybe you should get some sleep first?
q.
-
Probably :(