开发者

Updating a Current CoreData Store

开发者 https://www.devze.com 2022-12-17 21:18 出处:网络
How would you update a CoreData sto开发者_JS百科re with a new/updated data model?Use a data migration:

How would you update a CoreData sto开发者_JS百科re with a new/updated data model?


Use a data migration:

During migration, Core Data creates two stacks, one for the source store and one for the destination store. Core Data then fetches objects from the source stack and inserts the appropriate corresponding objects into the destination stack. Note that Core Data must re-create objects in the new stack.

0

精彩评论

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

关注公众号