Class

NSMappingModel

A model instance that specifies how to map a model from a source to a destination managed object model.

Declaration

@interface NSMappingModel : NSObject

Topics

Creating a Mapping

+ mappingModelFromBundles:forSourceModel:destinationModel:

Returns the mapping model that will translate data from the source to the destination model.

+ inferredMappingModelForSourceModel:destinationModel:error:

Returns a newly created mapping model that will migrate data from the source to the destination model.

- initWithContentsOfURL:

Returns a mapping model initialized from a given URL.

Managing Entity Mappings

entityMappings

The entity mappings for the mapping model.

entityMappingsByName

The entity mappings for the mapping model, keyed by name.

Relationships

Inherits From

See Also

Entity Mapping

NSMigrationManager

A migration manager instance that performs a migration of data from one persistent store to another using a given mapping model.

NSEntityMapping

A mapping instance that specifies how to map an entity from a source to a destination managed object model.

NSEntityMigrationPolicy

A policy instance that customizes the migration process for an entity mapping.

NSEntityMappingType

Data type used for constants that specify types of entity mapping.

NSPropertyMapping

A mapping instance that specifies in a model how to map from a property in a source entity to a property in a destination entity.