29 lines
776 B
C#
29 lines
776 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 int stock;
|
|
public Categoria categoria;
|
|
|
|
public Producto( string nombre, string descripcion, decimal precion, Categoria categoria, int stock = 0, int idProducto = 0)
|
|
{
|
|
this.idProducto = idProducto;
|
|
this.nombre = nombre;
|
|
this.descripcion = descripcion;
|
|
this.precion = precion;
|
|
this.stock = stock;
|
|
this.categoria = categoria;
|
|
}
|
|
}
|
|
}
|