añadido Context de entity y correjidos algunos temas de las entidades
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user