public Entidade Consultar(int id) { try { return(db.Set <Entidade>().Find(id)); } catch (SqlException ex) { throw ex; } }