31 lines
870 B
C#
31 lines
870 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace compabetov2.database.modelos
|
|
{
|
|
internal class Producto
|
|
{
|
|
public int idProducto;
|
|
public string nombre;
|
|
public string descripcion;
|
|
public decimal precion;
|
|
public string img;
|
|
public int stock;
|
|
public Categoria categoria;
|
|
|
|
public Producto(int idProducto = 0, string nombre = "", string descripcion = "", decimal precion = 0.0M, string img = "", int stock = 0, Categoria categoria = null)
|
|
{
|
|
this.idProducto = idProducto;
|
|
this.nombre = nombre;
|
|
this.descripcion = descripcion;
|
|
this.precion = precion;
|
|
this.img = img;
|
|
this.stock = stock;
|
|
this.categoria = categoria;
|
|
}
|
|
}
|
|
}
|