I have a collection of Movie
objects in a HashSet<Movie>
. Movie type has properties such has Name
, Year
, Length
, Genre
, etc.
I also has user profiles stored in individual files. I want to have each user to have a number of favorite movies.
But I am not sure how to "connect"/reference these movies inside the user profiles.
Should I just rely on names?
What's the best way to store the favorite movies in these individual user profiles? I can't think of any other than using names, but this feels like a fragile way. Also movie names are not unique. There are some with the same names.
Any ideas?