protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public UnitOfWork() { _context = new RentTrackerContext(); }
public Repository() { unitOfWork = new UnitOfWork(); context = new RentTrackerContext(); _entity = context.Set <T>(); }