añadido Context de entity y correjidos algunos temas de las entidades

This commit is contained in:
2024-08-14 00:26:42 -03:00
parent 1d23af8e93
commit 3f526d09d6
27 changed files with 302 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
namespace Entidades
{
@@ -10,16 +11,6 @@ namespace Entidades
public double Precio { get; set; }
public bool Habilitado { get; set; }
public bool EsPerecedero { get; set; }
[Browsable(false)]
public Categoria Categoria { get; set; }
public string Cartegoria_
{
get
{
return Categoria.Descripcion;
}
}
private List<Proveedor> proveedores = new List<Proveedor>();