コード例 #1
0
        public override IDbCommand CreateCommand()
        {
            IDbCommand command = base.CreateCommand();

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

            return(command);
        }
コード例 #2
0
        public static IDbCommand CreateProxy(IDbCommand instance)
        {
            var proxy = new DbCommandProxy(instance as DbCommand);

            return proxy.GetTransparentProxy() as IDbCommand;
        }
コード例 #3
0
        public static IDbCommand CreateProxy(IDbCommand instance)
        {
            var proxy = new DbCommandProxy(instance as DbCommand);

            return(proxy.GetTransparentProxy() as IDbCommand);
        }