private void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public UnitOfWork(RoomBookingDataContext context) { _context = context; }
public UserRepository(RoomBookingDataContext context) { this._context = context; }