示例#1
0
        public static detalleventa Newdetalleventa(int id)
        {
            detalleventa newEntity = new detalleventa();

            newEntity._id = id;

            return(newEntity);
        }
示例#2
0
        public List <detalleventa> GetAlldetalleventa()
        {
            List <detalleventa> lista  = new List <detalleventa>();
            SqlService          sql    = new SqlService();
            MySqlDataReader     reader = sql.ExecuteSqlReader("SELECT * FROM detalleventa");
            detalleventa        obj;

            while (reader.Read())
            {
                obj = new detalleventa();
                obj.LoadFromReader(reader);
                lista.Add(obj);
            }
            reader.Close();
            return(lista);
        }