コード例 #1
0
 public ActionResult Edit(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
 {
     if (ModelState.IsValid)
     {
         db.tbl_cv_wilingtorelocate.Attach(tbl_cv_wilingtorelocate);
         db.ObjectStateManager.ChangeObjectState(tbl_cv_wilingtorelocate, EntityState.Modified);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(tbl_cv_wilingtorelocate);
 }
コード例 #2
0
        public ActionResult Create(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
        {
            if (ModelState.IsValid)
            {
                db.tbl_cv_wilingtorelocate.AddObject(tbl_cv_wilingtorelocate);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(tbl_cv_wilingtorelocate);
        }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_cv_wilingtorelocate EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_cv_wilingtorelocate(tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate)
 {
     base.AddObject("tbl_cv_wilingtorelocate", tbl_cv_wilingtorelocate);
 }
コード例 #4
0
 /// <summary>
 /// Create a new tbl_cv_wilingtorelocate object.
 /// </summary>
 /// <param name="el_id">Initial value of the el_id property.</param>
 /// <param name="el_name_vi">Initial value of the el_name_vi property.</param>
 public static tbl_cv_wilingtorelocate Createtbl_cv_wilingtorelocate(global::System.Int32 el_id, global::System.String el_name_vi)
 {
     tbl_cv_wilingtorelocate tbl_cv_wilingtorelocate = new tbl_cv_wilingtorelocate();
     tbl_cv_wilingtorelocate.el_id = el_id;
     tbl_cv_wilingtorelocate.el_name_vi = el_name_vi;
     return tbl_cv_wilingtorelocate;
 }