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(); }
public virtual void Delete() { while (AllAlbumTagUsages.Any()) { AllAlbumTagUsages.First().Delete(); } while (AllArtistTagUsages.Any()) { AllArtistTagUsages.First().Delete(); } while (AllSongTagUsages.Any()) { AllSongTagUsages.First().Delete(); } }
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; } }