Beispiel #1
0
 public ActionResult Zhuanli(Zhuanli zhuanli)
 {
     ZhuanliService.GetInstance().Save(zhuanli);
     return RedirectToAction("zhuanlilist");
 }
Beispiel #2
0
 public void Save(Zhuanli  zhuanli)
 {
     if (zhuanli.id > 0)
          _zhuanliDao.Update(zhuanli);else
      _zhuanliDao.Insert(zhuanli);
 }
 partial void DeleteZhuanli(Zhuanli instance);
 partial void UpdateZhuanli(Zhuanli instance);
 partial void InsertZhuanli(Zhuanli instance);
		private void detach_Zhuanli(Zhuanli entity)
		{
			this.SendPropertyChanging();
			entity.Category = null;
		}
		private void attach_Zhuanli(Zhuanli entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}