Exemplo n.º 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();
        }
Exemplo n.º 2
0
        public virtual void Delete()
        {
            while (AllAlbumTagUsages.Any())
            {
                AllAlbumTagUsages.First().Delete();
            }

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

            while (AllSongTagUsages.Any())
            {
                AllSongTagUsages.First().Delete();
            }
        }
Exemplo n.º 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;
            }
        }