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

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

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

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

                return proxy.GetTransparentProxy() as IDbCommand;
            }