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(); }
public void get_rows (dbtable t, row_cb cb) { }
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 (); }
public void get_rows(dbtable t, row_cb cb) { }