开发者

How to make A request on two tables with core data?

开发者 https://www.devze.com 2023-01-26 21:34 出处:网络
I ve got 2 tables link by a 1-to many relationship, how could I retrieve data using NSFetchRequest from both tables using simply one request ?开发者_运维百科

I ve got 2 tables link by a 1-to many relationship, how could I retrieve data using NSFetchRequest from both tables using simply one request ?开发者_运维百科 Something like in SQL "select * from Table1 Table2 Where id.table1 =id.table2"? Or perhaps I miss something with coredata ! Can I reach objects simply through relationship ?

Thx for help


pick your objects from table1, and access their relationship property, that will fetch the related objects from table2.

If you want to learn more about Core Data, Marcus Zarra has done a book and also a course on iDeveloperTv. book is cheaper, both are fantastic.

0

精彩评论

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

关注公众号