I am using a C# program as an external interface to SAP thru .net connector generated proxies.
whenever I try to create an instance of the proxy, it compiles it at the following line of code.
SAPProxyDll1.SAPProxyDll1 prox = new SAPProxyDll1.SAPProxyDll1();
This affects the performance a lot because I have a query based connection and for every query it goes thru the compilation cycle (of around 7-8 seconds).
Is there a way to avoid this? I tried using NGEN to register the SAP.connector.dll and my proxy dll, but that didn't resolve it.