---
title: sourceContext
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmigrationmanager/sourcecontext
---

# sourceContext

The managed object context the migration manager uses for reading the source persistent store.

## Declaration

```swift
var sourceContext: NSManagedObjectContext { get }
```

## Discussion

Discussion This context is created on demand as part of the initialization of the Core Data stacks used for migration.

## See Also

### Getting the Manager’s Configuration

- [destinationContext](coredata/nsmigrationmanager/destinationcontext.md)
- [destinationModel](coredata/nsmigrationmanager/destinationmodel.md)
- [mappingModel](coredata/nsmigrationmanager/mappingmodel.md)
- [sourceModel](coredata/nsmigrationmanager/sourcemodel.md)
- [destinationEntity(for:)](coredata/nsmigrationmanager/destinationentity(for:).md)
- [sourceEntity(for:)](coredata/nsmigrationmanager/sourceentity(for:).md)
