---
title: shouldInferMappingModelAutomatically
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nspersistentstoredescription/shouldinfermappingmodelautomatically
---

# shouldInferMappingModelAutomatically

A flag indicating whether a mapping model should be created automatically.

## Declaration

```swift
var shouldInferMappingModelAutomatically: Bool { get set }
```

## Discussion

Discussion If this flag is set to true and the value of the shouldMigrateStoreAutomatically is true, the coordinator attempts to infer a mapping model if none can be found. The default for this flag is true.

## See Also

### Configuring a Persistent Store Description

- [url](coredata/nspersistentstoredescription/url.md)
- [configuration](coredata/nspersistentstoredescription/configuration.md)
- [timeout](coredata/nspersistentstoredescription/timeout.md)
- [type](coredata/nspersistentstoredescription/type.md)
- [isReadOnly](coredata/nspersistentstoredescription/isreadonly.md)
- [shouldAddStoreAsynchronously](coredata/nspersistentstoredescription/shouldaddstoreasynchronously.md)
- [shouldMigrateStoreAutomatically](coredata/nspersistentstoredescription/shouldmigratestoreautomatically.md)
- [setOption(_:forKey:)](coredata/nspersistentstoredescription/setoption(_:forkey:).md)
- [setValue(_:forPragmaNamed:)](coredata/nspersistentstoredescription/setvalue(_:forpragmanamed:).md)
