public void Dispose()
 {
     _context = null;
 }
Пример #2
0
 public MyRestaurantRepository(MyRestaurantContext context)
 {
     _context = context;
     table    = _context.Set <T>();
 }
 public UnitOfWork(DbContextOptions dbContextOptions)
 {
     _context = new MyRestaurantContext(dbContextOptions);
 }