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,9 +1,19 @@

using System.ComponentModel.DataAnnotations.Schema;
namespace Entidades
{
public class DetalleFactura: Detalle<Producto>
{
public int IdFactura { get; set; }
public double Subtotal { get; set; }
[NotMapped]
public double Subtotal
{
get
{
return Producto.Precio * Cantidad;
}
}
}
}