Esempio n. 1
0
        public void addUbicaciones(string ciudad)
        {
            Ubicacions u = new Ubicacions();
            u.asCiudades = ciudad;

            using (dbCobranzasEntities db = new dbCobranzasEntities())
            {
                db.AddToUbicacions(u);
                db.SaveChanges();
            }
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the Ubicacions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUbicacions(Ubicacions ubicacions)
 {
     base.AddObject("Ubicacions", ubicacions);
 }
 /// <summary>
 /// Create a new Ubicacions object.
 /// </summary>
 /// <param name="pkUbicacionID">Initial value of the pkUbicacionID property.</param>
 /// <param name="asCiudades">Initial value of the asCiudades property.</param>
 public static Ubicacions CreateUbicacions(global::System.Int32 pkUbicacionID, global::System.String asCiudades)
 {
     Ubicacions ubicacions = new Ubicacions();
     ubicacions.pkUbicacionID = pkUbicacionID;
     ubicacions.asCiudades = asCiudades;
     return ubicacions;
 }