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

            return View(tbl_cv_edulevel);
        }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tbl_CV_EduLevel EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotbl_CV_EduLevel(tbl_CV_EduLevel tbl_CV_EduLevel)
 {
     base.AddObject("tbl_CV_EduLevel", tbl_CV_EduLevel);
 }
コード例 #4
0
 /// <summary>
 /// Create a new tbl_CV_EduLevel 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_EduLevel Createtbl_CV_EduLevel(global::System.Int32 el_id, global::System.String el_name_vi)
 {
     tbl_CV_EduLevel tbl_CV_EduLevel = new tbl_CV_EduLevel();
     tbl_CV_EduLevel.el_id = el_id;
     tbl_CV_EduLevel.el_name_vi = el_name_vi;
     return tbl_CV_EduLevel;
 }