Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Aeropuertoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAeropuertoes(Aeropuerto aeropuerto)
 {
     base.AddObject("Aeropuertoes", aeropuerto);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Aeropuerto object.
 /// </summary>
 /// <param name="idAeropuerto">Initial value of the idAeropuerto property.</param>
 /// <param name="idCiudad">Initial value of the idCiudad property.</param>
 /// <param name="nombreAeropuerto">Initial value of the NombreAeropuerto property.</param>
 /// <param name="siglas">Initial value of the Siglas property.</param>
 public static Aeropuerto CreateAeropuerto(global::System.Int32 idAeropuerto, global::System.Int32 idCiudad, global::System.String nombreAeropuerto, global::System.String siglas)
 {
     Aeropuerto aeropuerto = new Aeropuerto();
     aeropuerto.idAeropuerto = idAeropuerto;
     aeropuerto.idCiudad = idCiudad;
     aeropuerto.NombreAeropuerto = nombreAeropuerto;
     aeropuerto.Siglas = siglas;
     return aeropuerto;
 }
Ejemplo n.º 3
0
 /**
 * @brief Crea un aeropuerto
 *
 * @param unAeropuerto       Aeropuerto que se desea crear.
 *
 * @return true si se pudo crear, false caso contrário
 *
 * @remark el idAeropuerto NO necesita ser inicializado.
 */
 public static void Create(Aeropuerto UnAeropuerto)
 {
     try { Provider.GetProvider().spNewAeropuerto(UnAeropuerto.NombreAeropuerto, UnAeropuerto.idCiudad, UnAeropuerto.Siglas); }
     catch (Exception e) { throw e; }
 }
Ejemplo n.º 4
0
 /**
  * @brief Obtiene los vuelos entre 2 fechas y desde un origen hasta un destino.
  *
  * @param Fecha1            La primera fecha
  * @param Fecha2            La segunda fecha
  * @param Origen            Aeropuerto de origen del vuelo.
  * @param Destino           Aeropuerto de destino del vuelo.
  *
  * @return la lista de vuelo si se pudo encontrar, NULL caso contrário.
  */
 public static List<Vuelo> GetVueloFromFechaAndPuerto(DateTime Fecha1, DateTime Fecha2, Aeropuerto Origen, Aeropuerto Destino)
 {
     try { return Provider.GetProvider().spGetVueloFromFechaAndPuerto(Fecha1, Fecha2, Origen.idAeropuerto, Destino.idAeropuerto).ToList(); }
     catch (Exception e) { throw e; }
 }
Ejemplo n.º 5
0
 /**
 * @brief Actualiza un Aeropuerto
 *
 * @param unAeropuerto       Aeropuerto que se desea actualizar.
 *
 * @return true si se pudo actualizar, false caso contrário.
 *
 * @warning el idAeropuerto DEBE estar inicializado.
 */
 public static void UpdateAeropuerto(Aeropuerto unAeropuerto)
 {
     try { Provider.GetProvider().spUpdateAeropuerto(unAeropuerto.idAeropuerto, unAeropuerto.NombreAeropuerto, unAeropuerto.idCiudad, unAeropuerto.Siglas); }
     catch (Exception e) { throw e; }
 }