예제 #1
0
        }                                               //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
        }
예제 #2
0
 // set the private variable
 public HomeController(TempleTourContext con)
 {
     _context = con;
 }