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
+6 -1
View File
@@ -1,4 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace Entidades
{
public class DetalleOrdenDeCompra: Detalle<Producto>
@@ -6,7 +8,8 @@ namespace Entidades
public int IdOrdenDeCompra { get; set; }
public Presupuesto presupuesto { get; set; }
public double MontoCU { get; set; }
[NotMapped]
public int IdPresupuesto
{
get
@@ -14,6 +17,7 @@ namespace Entidades
return presupuesto.Id;
}
}
[NotMapped]
public string NombreProducto
{
get
@@ -21,6 +25,7 @@ namespace Entidades
return Producto.Nombre;
}
}
[NotMapped]
public double SubTotal
{
get