Exemplo n.º 1
0
 public abstract bool UpdateAlbum(Album newAlbum);
Exemplo n.º 2
0
 //分类
 public abstract int CreateNewAlbum(Album newAlbum);
Exemplo n.º 3
0
 /*** ��̬���� ***/
 /// <summary>
 /// ��������
 /// </summary>
 /// <returns></returns>
 public static int InsertAlbum(int userId, int parentId, string title, string note, int collects, int orders)
 {
     if (String.IsNullOrEmpty(title))
         throw (new NullReferenceException("title"));
     Album insertAlbum = new Album(0, userId, parentId, title, note, collects, orders);
     if (insertAlbum.Save())
     {
         return insertAlbum.AlbumId;
     }
     else
     {
         return 0;
     }
 }