开发者

CoreData: migration from 2 models

开发者 https://www.devze.com 2022-12-26 12:49 出处:网络
I have general app model, after was released any body can do plug-in for it, this plug-in can determine new db parts which merged with my general db. After some time i \'ll release new db version^ and

I have general app model, after was released any body can do plug-in for it, this plug-in can determine new db parts which merged with my general db. After some time i 'll release new db version^ and plug-in writers开发者_运维技巧 may release new version of their dbs. So i need map old version of merged db into new version. How i can do this?


You need to review the migration documentation in Core Data. Core Data has migration built into it and you can either do light-weight automatic migration or you can create a mapping model for more complex situations.

http://developer.apple.com/mac/library/documentation/cocoa/conceptual/CoreDataVersioning/Introduction/Introduction.html

0

精彩评论

暂无评论...
验证码 换一张
取 消