in creating the relationships between them.
1.Artists can song many songs
and Song can also be sing by more than one artist.
so that relationship be many-many on both ways right?
I don't think it's the same song if it is sung by a different artist eh?
You could make a new table something like "artist_songs" or "performances"
song can be sing by one or more artist.For example consider 2 artist sing a song.likewise a artist can also sing many songs
Then my solution with a new table works
New table contains: artist_id | song_id
but the new table automatically created like correct since we are utilizing many-many mappings
Well that depends on what you're using
i was told to use ef code first approach!
Обсуждают сегодня