<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentHistoryTransaction/entityDescription(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentHistoryTransaction(cm)entityDescriptionWithContext:"
  },
  "title" : "entityDescription(with:)"
}
-->

# entityDescription(with:)

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

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

## Parameters

`context`

The managed object context for this request.

## Return Value

The entity description ([`NSEntityDescription`](/documentation/CoreData/NSEntityDescription)) of the persistent history transaction entity.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)