---
title: "isConfiguration(withName:compatibleWithStoreMetadata:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsmanagedobjectmodel/isconfiguration(withname:compatiblewithstoremetadata:)"
---

# 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

```swift
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

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

## Discussion

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

- [versionChecksum](coredata/nsmanagedobjectmodel/versionchecksum.md)
- [versionIdentifiers](coredata/nsmanagedobjectmodel/versionidentifiers.md)
- [entityVersionHashesByName](coredata/nsmanagedobjectmodel/entityversionhashesbyname.md)
