---
title: "entityDescription(with:)"
framework: coredata
role: symbol
role_heading: Type Method
path: "coredata/nspersistenthistorytransaction/entitydescription(with:)"
---

# entityDescription(with:)

Requests an entity description using the provided context for the managed object type affected by the transaction.

## Declaration

```swift
class func entityDescription(with context: NSManagedObjectContext) -> NSEntityDescription?
```

## Parameters

- `context`: The managed object context for this request.

## Return Value

Return Value The entity description (NSEntityDescription) of the persistent history transaction entity.

## See Also

### Customizing History Fetch Requests

- [fetchRequest](coredata/nspersistenthistorytransaction/fetchrequest.md)
- [entityDescription](coredata/nspersistenthistorytransaction/entitydescription.md)
