Exemple #1
0
 public abstract bool UpdateAlbum(Album newAlbum);
Exemple #2
0
 //分类
 public abstract int CreateNewAlbum(Album newAlbum);
Exemple #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;
     }
 }