Esempio n. 1
0
 public static ESCALA_FRECUENCIA ObtenerFrecuencia(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         ESCALA_FRECUENCIA entidad = model.ESCALA_FRECUENCIA.Where(x => x.ID_ESCALA_FRECUENCIA == id).FirstOrDefault();
         return(entidad);
     }
 }
 public static AMENAZAS ObtenerAmenaza(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         AMENAZAS entidad = model.AMENAZAS.Where(x => x.ID_AMENAZA == id).FirstOrDefault();
         return(entidad);
     }
 }
Esempio n. 3
0
 public static List <ESCALA_FRECUENCIA> ObtenerFrecuencias()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <ESCALA_FRECUENCIA> entidad = model.ESCALA_FRECUENCIA.ToList();
         return(entidad);
     }
 }
Esempio n. 4
0
 public static MAPA_CALOR ObtenerMapa(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         MAPA_CALOR entidad = model.MAPA_CALOR.Where(x => x.ID_MAPA_CALOR == id).FirstOrDefault();
         return(entidad);
     }
 }
 public static List <AMENAZAS> ObtenerAmenazas()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <AMENAZAS> entidad = model.AMENAZAS.ToList();
         return(entidad);
     }
 }
 public static ESCALA_DEGRADACION ObtenerEscala(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         ESCALA_DEGRADACION entidad = model.ESCALA_DEGRADACION.Where(x => x.ID_ESCALA_DEGRADACION == id).FirstOrDefault();
         return(entidad);
     }
 }
Esempio n. 7
0
 public static List <MAPA_CALOR> ObtenerMapas()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <MAPA_CALOR> entidad = model.MAPA_CALOR.ToList();
         return(entidad);
     }
 }
 public static List <ESCALA_DEGRADACION> ObtenerEscalas()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <ESCALA_DEGRADACION> entidad = model.ESCALA_DEGRADACION.ToList();
         return(entidad);
     }
 }
Esempio n. 9
0
 public static ELEMENTOS_DEGRADACION ObtenerElemento(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         ELEMENTOS_DEGRADACION entidad = model.ELEMENTOS_DEGRADACION.Where(x => x.ID_DEGRADACION == id).FirstOrDefault();
         return(entidad);
     }
 }
Esempio n. 10
0
 public static List <ELEMENTOS_DEGRADACION> ObtenerElementos()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <ELEMENTOS_DEGRADACION> entidad = model.ELEMENTOS_DEGRADACION.ToList();
         return(entidad);
     }
 }
Esempio n. 11
0
 public static VULNERABILIDADES ObtenerVulnerabilidad(int id)
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         VULNERABILIDADES entidad = model.VULNERABILIDADES.Where(x => x.ID_VULNERABILIDAD == id).FirstOrDefault();
         return(entidad);
     }
 }
Esempio n. 12
0
 public static List <VULNERABILIDADES> ObtenerVulnerabilidades()
 {
     using (RIESGO_TOTAL_Entities model = new RIESGO_TOTAL_Entities())
     {
         List <VULNERABILIDADES> entidad = model.VULNERABILIDADES.ToList();
         return(entidad);
     }
 }