Example #1
0
 private NrdoResult(DbDriver dbDriver, IDataReader reader, RowCounter rowCounter)
 {
     this.dbDriver   = dbDriver;
     this.reader     = reader;
     this.rowCounter = rowCounter;
     this.rowNum     = rowCounter.currentRowNum;
 }
Example #2
0
        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();
            }
        }
Example #3
0
 public static NrdoConnection Create(DbDriver dbDriver, string connectionString)
 {
     return(new NrdoConnection(dbDriver, connectionString));
 }
Example #4
0
 protected NrdoConnection(DbDriver dbDriver, string connectionString)
 {
     this.dbDriver   = dbDriver;
     this.connection = dbDriver.CreateConnection(connectionString);
     connection.Open();
 }
Example #5
0
 internal NrdoCommand(DbDriver dbDriver, IDbCommand command)
 {
     this.dbDriver = dbDriver;
     this.command  = command;
 }