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

            if (MiniProfiler.Current != null)
                command = new ProfiledSqlCommand((DbCommand)command, MiniProfiler.Current);

            return command;
        }
コード例 #2
0
        public override IDbCommand CreateCommand()
        {
            var command = base.CreateCommand();
            if (StackExchange.Profiling.MiniProfiler.Current != null)
            {
                command = new ProfiledSqlCommand(
                    (DbCommand)command,
                    StackExchange.Profiling.MiniProfiler.Current);
            }

            return command;
        }
コード例 #3
0
        public override IDbCommand CreateCommand()
        {
            var command = base.CreateCommand();

            if (StackExchange.Profiling.MiniProfiler.Current != null)
            {
                command = new ProfiledSqlCommand(
                    (DbCommand)command,
                    StackExchange.Profiling.MiniProfiler.Current);
            }

            return(command);
        }