public void Dispose(bool disposing) { if (!isDisposed && disposing) { if (_context != null) { _context.Dispose(); } } isDisposed = true; }