Core Data for 2 level data

I'm attempting to create a feature where I can allow two levels of information

Answered by DTS Engineer in 888485022

In Core Data, this kind of hierarchical data is expressed with too-many relationship. See this article for more information.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Wow - I don't know where the rest of my post went...another one of my posts just totally disappeared! I guess you have to check on these posts every time!

I'm trying to create a feature that uses CoreData with two levels of information for example a Task Entity with attributes of Name, Duration and UUID. Then those tasks are collected into and Event Entity that would have a name, UUID, and I guess an array of UUID's representing the Tasks that are part of/inside it.

My question is how to accommodate that array or what would be a good approach to storing that?

In Core Data, this kind of hierarchical data is expressed with too-many relationship. See this article for more information.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Core Data for 2 level data
 
 
Q