开发者

Core Data: multiple entities related to a single entity

开发者 https://www.devze.com 2022-12-10 09:08 出处:网络
I have an entity called \'SyncInfo\' (including 开发者_高级运维a UUID and a modified date) that I want other entities in my data model to have an instance of (i.e. employee/department).

I have an entity called 'SyncInfo' (including 开发者_高级运维a UUID and a modified date) that I want other entities in my data model to have an instance of (i.e. employee/department).

Is there a simple way to get Core Data to allow me to do this without requiring that SyncInfo have relationships with every single one of the other entities in the data model? I'm sure I'm overlooking something simple, I've only been doing Core Data stuff for a short while now.


You are not required to have an inverse relationship from the SyncInfo entity back to any of the entities that have a relationship with SyncInfo.
Xcode will give you a warning about the missing inverse relationship which can be ignored.

0

精彩评论

暂无评论...
验证码 换一张
取 消