Пример #1
0
 partial void DeleteAlbum(Album instance);
Пример #2
0
 partial void InsertAlbum(Album instance);
Пример #3
0
 partial void UpdateAlbum(Album instance);
Пример #4
0
 public ActionResult ModAlbum(int aid,Album album)
 {
     try
     {
         TianLaiDBDataContext db = new TianLaiDBDataContext();
         album = db.Album.SingleOrDefault(p => p.Aid == aid);
         UpdateModel(album);
         db.SubmitChanges();
         return Content("<label style='color:#35006A'>操作成功!</label>");
     }
     catch (Exception ex)
     {
         ex.ToString();
         return Content("<label style='color:Red'>操作失败!</label>");
     }
 }