This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Method 'snippets' in database; new to C#

eric_h - Thursday, August 25, 2011 1:37 PM:

I am new to the whole .NET programming thing, but I am seeing that I really need to learn a little C# (or VB.NET, but I am thinking to start with C#) to get some things done. Mostly I just want to be able to understand some on the 'out of box' methods, but also be able to customize some of them (i.e. create new methods based on exiting ones) so we can get certain functionality working that fits our processes.

One question I have, having compiled a couple simple C# programs (using the command line compiler in the .NET framework directories; basically 'Hello World' kind of stuff) is in regards to how the methods in the DB work.

I know in a program that is fully complied, I need to include things like 'using XYZ' and a 'Main()' function/method. The code is Aras does not have this things. My assumption is that the code we use in Aras that can be found in the method table in the DB is really just inserted or run dynamically within some other more fully compiled process, so in essence is just  a method or collection of methods that get added to existing code. Is this right? Is there a better way to understand this?

Thanks,

Eric



aponceot - Thursday, August 25, 2011 5:35 PM:

Hi !

 

The code you are writing in methods is inserted in class "templates" before being compiled on the fly by the server.

So the references and all the declarative functions are not needed because they are managed by the aras server.

You can have a look to "c:Program Files (x86)ArasagcoInnovatorServerdll" where the .cs or .vb files are stored with their relative compiled dll.