---
title: mappingType
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsentitymapping/mappingtype
---

# mappingType

The mapping type for the entity mapping.

## Declaration

```swift
var mappingType: NSEntityMappingType { get set }
```

## Discussion

Discussion If you specify a custom entity mapping type, you must specify a value for the migration policy class name as well (see entityMigrationPolicyClassName).

## See Also

### Managing Mapping Information

- [name](coredata/nsentitymapping/name.md)
- [entityMigrationPolicyClassName](coredata/nsentitymapping/entitymigrationpolicyclassname.md)
- [attributeMappings](coredata/nsentitymapping/attributemappings.md)
- [relationshipMappings](coredata/nsentitymapping/relationshipmappings.md)
- [userInfo](coredata/nsentitymapping/userinfo.md)
