lo que hice hoy

This commit is contained in:
2025-01-17 00:25:37 -03:00
parent 59981d76d8
commit 2b757e527f
12 changed files with 452 additions and 88 deletions

View File

@@ -0,0 +1,14 @@
using Entidades;
using Microsoft.EntityFrameworkCore;
namespace Modelo;
public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
public ICollection<Canon>? ObtenerCanonsPorContrato(int id) {
var con = Context;
var l = con.Contratos.Include(x=>x.Idcanons).FirstOrDefault(x => x.Id == id);
if (l == null) return null;
return l.Idcanons;
}
}