Beispiel #1
0
        public override bool ExecuteReader(SQLReaderHandler handler)
        {
            if (this.command == null)
            {
                return(false);
            }

            this.command.CommandText = this.CommandText;
            this.command.CommandType = this.CommandType;

            using (System.Data.Common.DbDataReader reader = this.command.ExecuteReader())
            {
                if (handler(new SQLSvrDbReader(reader)) == false)
                {
                    return(false);
                }
            }

            return(true);
        }
Beispiel #2
0
 public abstract bool ExecuteReader(SQLReaderHandler handler);