implementado hasta el ultimo paso antes de hacer la tercera notificacion
This commit is contained in:
@@ -27,14 +27,9 @@ public class RepositorioPropiedades: RepositorioBase<RepositorioPropiedades> {
|
||||
}
|
||||
|
||||
public Propiedade? ObtenerPropiedadPorId(int Id) {
|
||||
var con = Context;
|
||||
Propiedade? prop = con.Propiedades.Include(x=>x.DnipropietarioNavigation).FirstOrDefault(x=>x.Id == Id);
|
||||
|
||||
FormattableString sqlq = $"""
|
||||
SELECT * FROM Propiedades p
|
||||
WHERE p.id = {Id}
|
||||
LIMIT 1
|
||||
""";
|
||||
|
||||
Propiedade? prop = Context.Database.SqlQuery<Propiedade>(sqlq).First();
|
||||
if (prop == null || prop.Id == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user