使用核心数据进行数据迁移 [英] Data migration with core data

查看:89
本文介绍了使用核心数据进行数据迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在商店里有一个lite应用程序,它使用核心数据进行数据持久化,如果用户可以在升级后将数据迁移到应用程序的完整版本,这将是很好的。

I have a lite app on store which uses core data for data persistence, it would be nice if users could migrate their data to the full version of the app after upgrading.

我发现了这篇文章,但它

我似乎没有在这里找到任何信息。

I seem not to find any information about this no where.

想法如何做到这一点?

Anyone an idea on how to do this ?

推荐答案

在这方面,SQLite和Core Data没有什么区别。只需按照您链接到的文章中所述复制用作Core Data存储的文件即可。

There really is no difference between SQLite and Core Data in this regard. Just copy the file you use as Core Data store as described in the article you linked to.

这篇关于使用核心数据进行数据迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆