/// <summary>
 /// Deprecated Method for adding a new object to the Pais1 EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPais1(Pais pais)
 {
     base.AddObject("Pais1", pais);
 }
 /// <summary>
 /// Create a new Pais object.
 /// </summary>
 /// <param name="idPais">Initial value of the idPais property.</param>
 /// <param name="nombrePais">Initial value of the NombrePais property.</param>
 public static Pais CreatePais(global::System.Int32 idPais, global::System.String nombrePais)
 {
     Pais pais = new Pais();
     pais.idPais = idPais;
     pais.NombrePais = nombrePais;
     return pais;
 }
Beispiel #3
0
 /**
 * @brief Crea un país
 *
 * @param unPais       el País que se desea crear.
 *
 * @return true si se pudo crear, false caso contrário
 *
 * @remark el idPais NO necesita ser inicializado.
 */
 public static bool CreatePais(Pais unPais)
 {
     try { Provider.GetProvider().spNewPais(unPais.NombrePais); }
     catch (Exception e) { throw e; }
     return true;
 }