Ron
Ron

Reputation: 1315

Can Core Data transient relationships point to entities in a different persistent store?

I have an App that I am trying to design the data model for. I am using core data (my first App to do so).

My App will have a central database that is stored in its own persistent store as well as documents that will each be stored in their own persistent stores.

I would like to set up a transient relationship between the database and the documents, but I'm wondering if that is allowed since the database entity and the document entity will be in different persistent stores.

I know that I can achieve this by subclassing the entity and storing the documents in an NSArray or NSSet, but it would be nicer if I could use CoreData so I could take advantage of the power of searches / etc.

Thanks, Ron

Upvotes: 1

Views: 484

Answers (1)

Chaitanya Gupta
Chaitanya Gupta

Reputation: 4053

I think what you are looking for is Fetched Properties.

Upvotes: 2

Related Questions