如何在核心数据迁移映射中拆分实体
看起来这应该是直截了当的,但我还没有找到一个很好的例子。我有一个简单的核心数据实体,我想将其拆分为两个单独的实体。苹果的文档在较高级别提到了它(映射概述),但是,尚不清楚实际映射模型应该是什么样子才能将与新拆分实体的关系关联回原始实体。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我已经找到了自己的答案,并在这篇博文中详细介绍了它: 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/