insert y select de productos agregada
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace compabetov2.database.modelos
|
||||
{
|
||||
internal class Categoria
|
||||
{
|
||||
public int idCategoria;
|
||||
public string nombre;
|
||||
public string descricion;
|
||||
|
||||
public Categoria(int idCategoria, string nombre = "", string descricion = "")
|
||||
{
|
||||
this.idCategoria = idCategoria;
|
||||
this.nombre = nombre;
|
||||
this.descricion = descricion;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user