---
title: sourceEntityName
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsentitymapping/sourceentityname
---

# sourceEntityName

The source entity name for the entity mapping.

## Declaration

```swift
var sourceEntityName: String? { get set }
```

## Discussion

Discussion Mappings are not directly bound to entity descriptions; you can use the sourceEntity(for:) method on the migration manager to retrieve the entity description for this entity name.

## See Also

### Related Documentation

- [Core Data Model Versioning and Data Migration Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/Introduction.html.md)
- [destinationEntityName](coredata/nsentitymapping/destinationentityname.md)

### Managing Source Information

- [sourceEntityVersionHash](coredata/nsentitymapping/sourceentityversionhash.md)
- [sourceExpression](coredata/nsentitymapping/sourceexpression.md)
