iphone - 将新实体添加到核心数据模型中?

时间:2021-10-01 16:31:19

Is adding a new entity on the new version of my core data model going to crash the apps using the older versions of core data model?

在我的核心数据模型的新版本上添加新实体会使用旧版本的核心数据模型来破坏应用程序吗?

What if this entity has a relationship with an existing entity.

如果此实体与现有实体有关系,该怎么办?

oldEntity (1)------------->(oo) newEntity

1 个解决方案

#1


0  

Sounds like a simple case for versioning, which can be done quite simply in a lot of instances. This sounds like one of them.

听起来像版本控制的简单案例,可以在很多实例中完成。这听起来像其中之一。

Check out the docs here: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html

在这里查看文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html

#1


0  

Sounds like a simple case for versioning, which can be done quite simply in a lot of instances. This sounds like one of them.

听起来像版本控制的简单案例,可以在很多实例中完成。这听起来像其中之一。

Check out the docs here: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html

在这里查看文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html