public static void Main(string[] args) { var context = new VideoRentalDbContext(); // Action movies sorted by name Console.WriteLine(); Console.WriteLine("ACTION MOVIES SORTED BY NAME"); /* var actionMovies = context.Videos * .Where(v => v.Genre.Name == "Action") * .OrderBy(v => v.Name); * * foreach (var video in actionMovies) * { * Console.WriteLine(video.Name); * } */ }
public MoviesController(VideoRentalDbContext context) { _context = context; }
public CustomersController() { db = new VideoRentalDbContext(); }
public CustomersController(VideoRentalDbContext context) { _context = context; }
public NewRentalsController() { db = new VideoRentalDbContext(); }