Пример #1
0
 public ActionResult Zhuanli(Zhuanli zhuanli)
 {
     ZhuanliService.GetInstance().Save(zhuanli);
     return RedirectToAction("zhuanlilist");
 }
Пример #2
0
 public void Save(Zhuanli  zhuanli)
 {
     if (zhuanli.id > 0)
          _zhuanliDao.Update(zhuanli);else
      _zhuanliDao.Insert(zhuanli);
 }
Пример #3
0
 partial void DeleteZhuanli(Zhuanli instance);
Пример #4
0
 partial void UpdateZhuanli(Zhuanli instance);
Пример #5
0
 partial void InsertZhuanli(Zhuanli instance);
Пример #6
0
		private void detach_Zhuanli(Zhuanli entity)
		{
			this.SendPropertyChanging();
			entity.Category = null;
		}
Пример #7
0
		private void attach_Zhuanli(Zhuanli entity)
		{
			this.SendPropertyChanging();
			entity.Category = this;
		}