<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSEntityMappingType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:@E@NSEntityMappingType"
  },
  "title" : "NSEntityMappingType"
}
-->

# NSEntityMappingType

The types for mapping an entity between a source model and a destination model.

```
enum NSEntityMappingType
```

## Topics

### Enumeration Cases

[`NSAddEntityMappingType`](/documentation/CoreData/NSEntityMappingType/addEntityMappingType)

Specifies that this is a new entity in the destination model.

[`NSCopyEntityMappingType`](/documentation/CoreData/NSEntityMappingType/copyEntityMappingType)

Specifies that source instances are migrated as-is.

[`NSCustomEntityMappingType`](/documentation/CoreData/NSEntityMappingType/customEntityMappingType)

Specifies a custom mapping.

[`NSRemoveEntityMappingType`](/documentation/CoreData/NSEntityMappingType/removeEntityMappingType)

Specifies that this entity is not present in the destination model.

[`NSTransformEntityMappingType`](/documentation/CoreData/NSEntityMappingType/transformEntityMappingType)

Specifies that entity exists in source and destination and is mapped.

[`NSUndefinedEntityMappingType`](/documentation/CoreData/NSEntityMappingType/undefinedEntityMappingType)

Specifies that the developer handles destination instance creation.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)