Ejemplo n.º 1
0
        public void get_rows(dbtable t, row_cb cb)
        {
            string cmd = "select * from " + t.name;

            System.Data.SqlClient.SqlCommand c = new System.Data.SqlClient.SqlCommand(cmd, con);
            c.Transaction = trans;
            System.Data.SqlClient.SqlDataReader r = c.ExecuteReader();
            while (r.Read())
            {
                object[] o = new object[r.FieldCount];
                r.GetValues(o);
                dbrow row;
                row.fields   = o;
                row.table_id = t.id;
                cb(row);
            }
            r.Close();
        }
Ejemplo n.º 2
0
		public void get_rows (dbtable t, row_cb cb)
		{
			
		}
Ejemplo n.º 3
0
		public void get_rows (dbtable t, row_cb cb)
		{
			string cmd = "select * from " + t.name;
			System.Data.SqlClient.SqlCommand c = new System.Data.SqlClient.SqlCommand (cmd, con);
			c.Transaction=trans;
			System.Data.SqlClient.SqlDataReader r = c.ExecuteReader ();
			while (r.Read ()) {
				object[] o = new object[r.FieldCount];
				r.GetValues (o);
				dbrow row;
				row.fields = o;
				row.table_id=t.id;
				cb (row);
			}
			r.Close ();
		}
Ejemplo n.º 4
0
 public void get_rows(dbtable t, row_cb cb)
 {
 }