This commit is contained in:
fedpo
2024-09-08 02:39:13 +01:00
parent c15ae743ab
commit 393caac989
65 changed files with 1138 additions and 282 deletions

View File

@@ -1,4 +1,5 @@
using Entidades;
using Microsoft.EntityFrameworkCore;
using System.Runtime.Intrinsics.Arm;
namespace Modelo
@@ -12,7 +13,10 @@ namespace Modelo
public override List<Lote> Listar()
{
return context.Lotes.ToList();
return context.Lotes
.AsNoTracking()
.Include(x => x.Producto)
.ToList();
}
public Lote ObtenerPorId(int Tid)