开发者

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

开发者 https://www.devze.com 2023-03-12 21:38 出处:网络
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).

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.开发者_如何学C

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


I think what you are looking for is Fetched Properties.

0

精彩评论

暂无评论...
验证码 换一张
取 消