asdas
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user