Brian - Thursday, May 7, 2009 7:36 AM:
I tried to write an onGet method in C# today and found that I could not get it to accept the "using" directive.
I had to put the full namespace in when calling System.Data.OleDb. members.
Is this me or Innovator?
Thanks.
Brian.
PLMGuy - Thursday, May 7, 2009 4:54 PM:
Your method code actually gets merged into a template before it is compiled. The template contains all of the using directives.
Look for a file named "method-config.xml" in the InnovatorServer folder. In that file there's a Template element with a name attribute = "CSharp", if you add "using System.Data.OleDb;" into that template then it will be available in all your server methods without having to fully specify it.