Question

I'm learning core dada now using the apple guid, and they explain:

"for every object in a persistent store there may be at most one corresponding managed object associated with a given context"

So that means if I have a notes app and i'v created two entities in my datamodel file called "Note" and "NotePad" for instance, while i'm fetching those object from a managed object context I will need 2 different managed object context's like:

noteManagedObjecContext object

notePadManagedObjectContext object

and fetching each to correspond to the matched object?

Thanks

Was it helpful?

Solution

"for every object in a persistent store there may be at most one corresponding managed object associated with a given context"

You misunderstand. It means that for any object in the data store, each managed object context will have only one managed object instance in memory for that object.

It has no relation to the number of entities.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top