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