mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 05:12:15 +01:00
uniquify subclass names across model versions
This commit is contained in:
1 parent
129f975d96
commit
997c5bdcfa
2 files changed
+12
-5
No files matched your search
@@ -13,6 +13,12 @@ import CoreData
|
||||
|
||||
@objc internal class CoreStoreManagedObject: NSManagedObject {
|
||||
|
||||
@nonobjc @inline(__always)
|
||||
internal static func cs_subclassName(for entity: DynamicEntity, in modelVersion: ModelVersion) -> String {
|
||||
|
||||
return "_\(NSStringFromClass(CoreStoreManagedObject.self))__\(modelVersion)__\(NSStringFromClass(entity.type))__\(entity.entityName)"
|
||||
}
|
||||
|
||||
@nonobjc
|
||||
internal class func cs_setKeyPathsForValuesAffectingKeys(_ keyPathsForValuesAffectingKeys: [KeyPath: Set<KeyPath>], for managedObjectClass: CoreStoreManagedObject.Type) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user