コード例 #1
0
 public RestaurantsController(RestaurantFinderContext db)
 {
     _db = db;
 }
コード例 #2
0
        private readonly RestaurantFinderContext _db;         // field; type is RestaurantFinderContext

        public CuisinesController(RestaurantFinderContext db) // constructor; set db property to RestaurantFinder context
        {
            _db = db;
        }