<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSManagedObjectModel/isConfiguration(withName:compatibleWithStoreMetadata:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSManagedObjectModel(im)isConfiguration:compatibleWithStoreMetadata:"
  },
  "title" : "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.

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

<doc://com.apple.documentation/documentation/Swift/true> if the configuration in the receiver specified by `configuration` is compatible with the store metadata given by `metadata`, otherwise <doc://com.apple.documentation/documentation/Swift/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`](/documentation/CoreData/NSManagedObjectModel/entityVersionHashesByName) and perform an entity-by-entity comparison.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)