示例#1
0
        //新增相簿
        private int AddAlbum(int frontCoverSN, string Title, bool IsEnable, string userID)
        {
            Rio_Album Album = new Rio_Album();

            Album.FrontCoverSN = frontCoverSN;
            Album.AlbumName    = Title;
            Album.AlbumContent = string.Empty;
            Album.Sort         = 0;
            Album.HitCount     = 0;
            Album.IsEnable     = IsEnable;
            Album.IsDelete     = false;

            DateTime timeNow = DateTime.Now;

            Album.CreateID   = userID;
            Album.CreateName = userID;
            Album.CreateDate = timeNow;
            Album.ModifyID   = userID;
            Album.ModifyName = userID;
            Album.ModifyDate = timeNow;

            AlbumModel.Insert(Album);

            return(Album.SN);
        }