---
title: entityName
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchrequest/entityname
---

# entityName

The name of the entity the request is configured to fetch.

## Declaration

```swift
var entityName: String? { get }
```

## Discussion

Discussion The entity name property is populated whenever the NSFetchRequest is created with NSFetchRequest/init(entityName:) or init(entityName:).

## See Also

### Managing the Fetch Request’s Entity

- [init(entityName:)](coredata/nsfetchrequest/init(entityname:)-5anoo.md)
- [init()](coredata/nsfetchrequest/init().md)
- [entity](coredata/nsfetchrequest/entity.md)
- [includesSubentities](coredata/nsfetchrequest/includessubentities.md)
- [NSFetchRequestResultType](coredata/nsfetchrequestresulttype.md)
