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

有帮助吗?

解决方案

"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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top