Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SerieAvions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSerieAvions(SerieAvion serieAvion)
 {
     base.AddObject("SerieAvions", serieAvion);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new SerieAvion object.
 /// </summary>
 /// <param name="idSerie">Initial value of the idSerie property.</param>
 /// <param name="idMarca">Initial value of the idMarca property.</param>
 /// <param name="nombreSerie">Initial value of the NombreSerie property.</param>
 public static SerieAvion CreateSerieAvion(global::System.Int32 idSerie, global::System.Int32 idMarca, global::System.String nombreSerie)
 {
     SerieAvion serieAvion = new SerieAvion();
     serieAvion.idSerie = idSerie;
     serieAvion.idMarca = idMarca;
     serieAvion.NombreSerie = nombreSerie;
     return serieAvion;
 }
Ejemplo n.º 3
0
 /**
  * @brief Crea una serie de avión.
  *
  * @param unaSerie         La serie de avión que será creada.
  *
  * @return true si se pudo crear y false caso contrário.
  *
  * @remarks el idSerieAvion no tiene que estár inicializado.
  */
 public static bool CreateSerieAvion(SerieAvion unaSerie)
 {
     try { Provider.GetProvider().spNewSerieAvion(unaSerie.NombreSerie, unaSerie.idMarca); }
     catch (Exception e) { throw e; }
     return true;
 }