private NrdoResult(DbDriver dbDriver, IDataReader reader, RowCounter rowCounter) { this.dbDriver = dbDriver; this.reader = reader; this.rowCounter = rowCounter; this.rowNum = rowCounter.currentRowNum; }
internal static IEnumerable <NrdoResult> Get(DbDriver dbDriver, IDataReader reader) { var counter = new RowCounter(); while (reader.Read()) { yield return(new NrdoResult(dbDriver, reader, counter)); counter.advance(); } }
public static NrdoConnection Create(DbDriver dbDriver, string connectionString) { return(new NrdoConnection(dbDriver, connectionString)); }
protected NrdoConnection(DbDriver dbDriver, string connectionString) { this.dbDriver = dbDriver; this.connection = dbDriver.CreateConnection(connectionString); connection.Open(); }
internal NrdoCommand(DbDriver dbDriver, IDbCommand command) { this.dbDriver = dbDriver; this.command = command; }