Пример #1
0
 partial void UpdateMusic(Music instance);
Пример #2
0
 partial void DeleteMusic(Music instance);
Пример #3
0
 partial void InsertMusic(Music instance);
Пример #4
0
 public ActionResult ModMusic(int mid,Music music)
 {
     try
     {
         TianLaiDBDataContext db = new TianLaiDBDataContext();
         music = db.Music.SingleOrDefault(p => p.Mid == mid);
         UpdateModel(music);
         db.SubmitChanges();
         return Content("<label style='color:#35006A'>操作成功!</label>");
     }
     catch (Exception ex)
     {
         ex.ToString();
         return Content("<label style='color:Red'>操作失败!</label>");
     }
 }
Пример #5
0
 partial void DeleteMusic(Music instance);
Пример #6
0
 partial void UpdateMusic(Music instance);
Пример #7
0
 partial void InsertMusic(Music instance);