Returns a Boolean value that indicates whether a given configuration in the model is compatible with given metadata from a persistent store.
SDKs
- iOS 3.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Data
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 entity
and perform an entity-by-entity comparison.