コード例 #1
0
        public virtual void Delete()
        {
            while (AllAlbumTagUsages.Any())
            {
                AllAlbumTagUsages.First().Delete();
            }

            while (AllArtistTagUsages.Any())
            {
                AllArtistTagUsages.First().Delete();
            }

            while (AllSongTagUsages.Any())
            {
                AllSongTagUsages.First().Delete();
            }

            foreach (var child in AllChildren)
            {
                child.Parent = null;
            }

            while (RelatedTags.Any())
            {
                RelatedTags.First().Delete();
            }

            if (Parent != null)
            {
                Parent.AllChildren.Remove(this);
            }

            TagsForUsers.Clear();
        }
コード例 #2
0
        public virtual void Delete()
        {
            while (AllAlbumTagUsages.Any())
            {
                AllAlbumTagUsages.First().Delete();
            }

            while (AllArtistTagUsages.Any())
            {
                AllArtistTagUsages.First().Delete();
            }

            while (AllSongTagUsages.Any())
            {
                AllSongTagUsages.First().Delete();
            }
        }
コード例 #3
0
        public virtual void Delete()
        {
            while (AllAlbumTagUsages.Any())
            {
                AllAlbumTagUsages.First().Delete();
            }

            while (AllArtistTagUsages.Any())
            {
                AllArtistTagUsages.First().Delete();
            }

            while (AllSongTagUsages.Any())
            {
                AllSongTagUsages.First().Delete();
            }

            foreach (var child in Children)
            {
                child.Parent = null;
            }
        }