Contents

isConfiguration(withName:compatibleWithStoreMetadata:)

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

Declaration

func isConfiguration(withName configuration: String?, compatibleWithStoreMetadata metadata: [String : Any]) -> Bool

Parameters

  • configuration:

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

  • metadata:

    Metadata for a persistent store.

Return Value

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

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

Versioning and migrating entities