如何在核心数据迁移映射中拆分实体

发布于 2024-08-15 00:51:58 字数 322 浏览 1 评论 0原文

看起来这应该是直截了当的,但我还没有找到一个很好的例子。我有一个简单的核心数据实体,我想将其拆分为两个单独的实体。苹果的文档在较高级别提到了它(映射概述),但是,尚不清楚实际映射模型应该是什么样子才能将与新拆分实体的关系关联回原始实体。

It seems like this should be straight forward but I have not been able to find a good example of it. I have a simple Core Data entity that I want to split into two separate entities. Apple's documentation mentions it at a high level (Mapping Overview), however, it is unclear what the actual mapping model should look like to associate the relationship to the new split out entity back to the original.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗弃M 2024-08-22 00:51:58

好的,我已经找到了自己的答案,并在这篇博文中详细介绍了它: https://slalomdotcom.wordpress.com/2010/01/08/splitting-an-entity-in-a-coredata-migration/

OK, I have found my own answer to this one and have detailed it in this blog post: https://slalomdotcom.wordpress.com/2010/01/08/splitting-an-entity-in-a-coredata-migration/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文