} //set up the context as an object of type TempleTourContext (which inherits from the DbContext and has two DbSets as properties) public HomeController(ILogger <HomeController> logger, TempleTourContext con) { _logger = logger; context = con; //sets the context }
// set the private variable public HomeController(TempleTourContext con) { _context = con; }