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,5 +1,6 @@
using System.Collections.ObjectModel;
using Entidades;
using Microsoft.EntityFrameworkCore;
namespace Modelo
{
@@ -13,7 +14,12 @@ namespace Modelo
public override List<Remito> Listar()
{
return context.Remitos.ToList();
return context.Remitos
.AsNoTracking()
.Include(x => x.Lotes)
.ThenInclude(x => x.Producto)
.Include(x => x.Proveedor)
.ToList();
}
public Remito ObtenerPorId(int Tid)