Inheritance: System.Runtime.Remoting.Proxies.RealProxy
Exemplo n.º 1
0
        public override IDbCommand CreateCommand()
        {
            IDbCommand command = base.CreateCommand();

            if (MiniProfiler.Current != null)
            {
                command = DbCommandProxy.CreateProxy(command);
            }

            return(command);
        }
Exemplo n.º 2
0
            public static IDbCommand CreateProxy(IDbCommand instance)
            {
                var proxy = new DbCommandProxy(instance as DbCommand);

                return(proxy.GetTransparentProxy() as IDbCommand);
            }
Exemplo n.º 3
0
            public static IDbCommand CreateProxy(IDbCommand instance)
            {
                var proxy = new DbCommandProxy(instance as DbCommand);

                return proxy.GetTransparentProxy() as IDbCommand;
            }