Пример #1
0
        public static venta Newventa(int id)
        {
            venta newEntity = new venta();

            newEntity._id = id;

            return(newEntity);
        }
Пример #2
0
        public List <venta> GetAllventa()
        {
            List <venta>    lista  = new List <venta>();
            SqlService      sql    = new SqlService();
            MySqlDataReader reader = sql.ExecuteSqlReader("SELECT * FROM venta");
            venta           obj;

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