public class Movie { [Required] public string Title { get; set; } public int Rating { get; set; } } public class User { public int? Id { get; set; } [Required] public string Name { get; set; } public IList<Movie> FavouriteMovies { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)