iPhone核心数据:三层实体关系混乱
请参阅下面的核心数据表。我想将“Color”实体与“detailsColor”属性(在“详细信息”实体中)相关联。这个想法是(在本例中)有三种颜色适用于detailsColor。
我本以为颜色中的“关系”将适用于“detailsColor”属性,因为这些颜色仅适用于那里。但我似乎无法将两者联系起来。我只能创建与整个详细信息实体的关系。这是正确的吗?建议表示赞赏。
Re the Core Data table below. I want to associate the "Color" entity with the "detailsColor" attribute (in the Details entity). The idea is that there are (in this case) three Colors applicable to detailsColor.
I would have thought the "Relationships" in Color would apply to the "detailsColor" attribute as these colors only apply there. I cannot seem to connect the two though. I can only create a relationship with the entire Details entity. Is this correct? Suggestions appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关系连接实体,因此说“colorDetails”适用于“整个Details 实体”是没有意义的。你的设置对我来说看起来没问题。
A relation connects entities, so it doesn't make sense to say that "colorDetails" applies "to the entire Details entity". Your set up looks okay to me.