Example #1
0
        public int DemTongHoaDonDAO()
        {
            //...
            string query = "SELECT COUNT(*) FROM HoaDon";
            int    count = conn.GetDataScalar(query);

            //...
            return(count);
        }