Store for each Entity?


#1

In the book, the authors create a BNRItemStore for the BNRItem entity. Should there always be a 1:1 relationship between an Entity and a Store?
In my app, I have three Entities A, B, and C. They have a tree-like relationship structure, A can have 0:N B, B has an inverse relationship with A, similarly B can have 0:M C, C has an inverse relationship with B.
Furthermore, I’d like to be able to create A, B and C and link them later.

What is the best way to arrange the Entities and do I need stores for each Entity?

Thanks


#2

You would have one store for each Core Data model file, since all of these objects are going to be related and will all be accessed via the same context.