mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 13:22:12 +01:00
Field.Coded implementations for transformable attributes
This commit is contained in:
1 parent
43f61359da
commit
bcc2d9def3
22 files changed
+1505
-101
No files matched your search
@@ -33,15 +33,25 @@ extension NSManagedObjectModel {
|
||||
|
||||
@nonobjc
|
||||
internal func cs_resolveNames() -> [String: (entity: NSEntityDescription, versionHash: Data)] {
|
||||
return self.entitiesByName.reduce(into: [:], { (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
result[entity.name] = (entity.description, entity.description.versionHash)
|
||||
})
|
||||
|
||||
return self.entitiesByName.reduce(
|
||||
into: [:],
|
||||
{ (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
|
||||
result[entity.name] = (entity.description, entity.description.versionHash)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
internal func cs_resolveRenamingIdentities() -> [String: (entity: NSEntityDescription, versionHash: Data)] {
|
||||
return self.entitiesByName.reduce(into: [:], { (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
result[entity.description.renamingIdentifier ?? entity.name] = (entity.description, entity.description.versionHash)
|
||||
})
|
||||
|
||||
return self.entitiesByName.reduce(
|
||||
into: [:],
|
||||
{ (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
|
||||
result[entity.description.renamingIdentifier ?? entity.name] = (entity.description, entity.description.versionHash)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user