public void Dispose() { if (Context != null) { Context.Dispose(); Context = null; } }
public void Dispose() { if (_context != null) { _context.Dispose(); _context = null; } }
public UnitOfWork(FoodApiContext context) { Context = context; }
public BaseRepository(FoodApiContext context) { _context = context; }