예제 #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
예제 #2
0
 public FoodItemController(RestaurantDataContext context)
 {
     _context = context;
 }
예제 #3
0
 public UnitOfWork(RestaurantDataContext context)
 {
     _context = context;
 }
예제 #4
0
 public OrderController(RestaurantDataContext context)
 {
     _context = context;
 }
 public RestaurantRepository(RestaurantDataContext context)
 {
     _context = context;
 }
 public CustomerController(RestaurantDataContext context)
 {
     _context = context;
 }
예제 #7
0
 public RestaurantsRepository(RestaurantDataContext dataContext)
 {
     _db = dataContext;
 }
예제 #8
0
 public UnitOfWork(IRestaurantRepository restaurantRepository, IPlateRepository plateRepository, RestaurantDataContext dataContext)
 {
     _restaurantRepository = restaurantRepository;
     _plateRepository      = plateRepository;
     _db = dataContext;
 }