문제

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