partial void DeleteArtist(Artist instance);
 partial void InsertArtist(Artist instance);
 partial void UpdateArtist(Artist instance);
        private void lstSongs_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MusicFile curSong = (MusicFile)lstSongs.SelectedItem;
            bool foundArtist = false;

            foreach (Artist artist in dbArtists)
            {
                if (artist.Name == curSong.Artist)
                {
                    foundArtist = true;
                    break;
                }
            }

            if (!foundArtist)
            {
                Artist newArtist = new Artist();
                newArtist.Name = curSong.Artist;
                db.Artists.InsertOnSubmit(newArtist);
                db.SubmitChanges();
            }
        }