Ejemplo n.º 1
0
        private void button8_Click(object sender, EventArgs e)
        {
            string   s    = @"d:\Calc\Projects\Курган\Electro.accdb";
            string   sql  = "SELECT Objects.*, Signals.* FROM Objects INNER JOIN Signals ON Objects.ObjectId = Signals.ObjectId";
            var      db   = new DaoDb(s);
            var      recd = new RecDao(db, sql);
            var      reca = new ReaderAdo(db, sql);
            DateTime d    = DateTime.Now;

            while (recd.Read())
            {
                string f = recd.GetString("FullCode");
                f = recd.GetString("CodeSignal");
                f = recd.GetString("NameSignal");
            }
            recd.Dispose();
            MessageBox.Show(DateTime.Now.Subtract(d).ToString());
            reca.Dispose();
            db.Dispose();
        }