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); }
public abstract bool ExecuteReader(SQLReaderHandler handler);