Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PlantaAvions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPlantaAvions(PlantaAvion plantaAvion)
 {
     base.AddObject("PlantaAvions", plantaAvion);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new PlantaAvion object.
 /// </summary>
 /// <param name="idPlanta">Initial value of the idPlanta property.</param>
 /// <param name="idAvion">Initial value of the idAvion property.</param>
 /// <param name="piso">Initial value of the Piso property.</param>
 /// <param name="uRLPlanta">Initial value of the URLPlanta property.</param>
 public static PlantaAvion CreatePlantaAvion(global::System.Int32 idPlanta, global::System.Int32 idAvion, global::System.Int32 piso, global::System.String uRLPlanta)
 {
     PlantaAvion plantaAvion = new PlantaAvion();
     plantaAvion.idPlanta = idPlanta;
     plantaAvion.idAvion = idAvion;
     plantaAvion.Piso = piso;
     plantaAvion.URLPlanta = uRLPlanta;
     return plantaAvion;
 }
Exemplo n.º 3
0
 /**
  * @brief Crea una planta de avión.
  *
  * @param unaPlanta        La planta de avión que será creada.
  *
  * @return true si se pudo crear y false caso contrário.
  *
  * @remarks el idPlantaAvion no tiene que estár inicializado.
  */
 public static bool CreatePlantaAvion(PlantaAvion unaPlanta)
 {
     try { Provider.GetProvider().spNewPlanta(unaPlanta.idAvion, unaPlanta.URLPlanta, unaPlanta.Piso); }
     catch (Exception e) { throw e; }
     return true;
 }