---
title: sourceEntityVersionHash
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsentitymapping/sourceentityversionhash
---

# sourceEntityVersionHash

The version hash of the source entity for the entity mapping.

## Declaration

```swift
var sourceEntityVersionHash: Data? { get set }
```

## Discussion

Discussion The version hash is calculated by Core Data based on the property values of the entity (see NSEntityDescription’s versionHash method). The sourceEntityVersionHash must equal the version hash of the source entity represented by the mapping.

## See Also

### Related Documentation

- [destinationEntityVersionHash](coredata/nsentitymapping/destinationentityversionhash.md)

### Managing Source Information

- [sourceEntityName](coredata/nsentitymapping/sourceentityname.md)
- [sourceExpression](coredata/nsentitymapping/sourceexpression.md)
