Instance Method

destinationEntity(for:)

Returns the entity description for the destination entity of a given entity mapping.

Declaration

func destinationEntity(for mEntity: NSEntityMapping) -> NSEntityDescription?

Parameters

mEntity

An entity mapping.

Return Value

The entity description for the destination entity of mEntity.

Discussion

Entity mappings do not store the actual description objects, but rather the name and version information of the entity.

See Also

Getting Information About a Migration Manager

var mappingModel: NSMappingModel

The mapping model for the migration manager.

var sourceModel: NSManagedObjectModel

The source model for the migration manager.

var destinationModel: NSManagedObjectModel

The destination model for the migration manager.

func sourceEntity(for: NSEntityMapping) -> NSEntityDescription?

Returns the entity description for the source entity of a given entity mapping.

var sourceContext: NSManagedObjectContext

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

var destinationContext: NSManagedObjectContext

The managed object context the migration manager uses for writing the destination persistent store.

var userInfo: [AnyHashable : Any]?

The user info for the migration manager.