Instance Method

isConfiguration:compatibleWithStoreMetadata:

Returns a Boolean value that indicates whether a given configuration in the model is compatible with given metadata from a persistent store.

Declaration

- (BOOL)isConfiguration:(NSString *)configuration compatibleWithStoreMetadata:(NSDictionary<NSString *,id> *)metadata;

Parameters

configuration

The name of a configuration in the receiver. Pass nil to specify no configuration.

metadata

Metadata for a persistent store.

Return Value

YES if the configuration in the receiver specified by configuration is compatible with the store metadata given by metadata, otherwise NO.

Discussion

This method compares the version information in the store metadata with the entity versions of a given configuration. For information on specific differences, use entityVersionHashesByName and perform an entity-by-entity comparison.

See Also

Handing Versions and Migration

entityVersionHashesByName

A dictionary of the version hashes for the entities in the model, keyed by entity name.

versionIdentifiers

The set of developer-defined version identifiers for the model.