2

I have an app which uses core data, the database structure was designed through xCode.

I'm using a separate 3rd party app to populate the .SQLite file itself, and I'm wondering if there is a way to alter the structure of the database (and hence the managed object model) but not lose the data that is already in the .SQLite file?

I've run out of ideas on this one so any help appreciated.

4

1 に答える 1

4

これはやや複雑なトピックであり、「コア データ モデルのバージョン管理とデータ移行」という見出しの下に文書化されています。Apple のガイドはhttp://developer.apple.com/library/mac/#documentation/cocoa/conceptual/CoreDataVersioning/Articles/Introduction.htmlにあります。

于 2012-08-11T17:57:47.687 に答える