最直接的办法是像数据库那样给出相关条件和范围进行查询 Core Data框架提供了数据获取请求(fetch request)的方式来获取对象: 构造一个NSFetchRequest对象 在其中包含请求所需要的一切条件和范围信息 并将其发送给上下文 然后上下文返回满...
基于22个网页-相关网页
The other solution will be (as you suggested) to create a fetch request for each entity.
另一个解决方案将是(如您所建议)为每个实体创建一个抓取请求。
When results of a query are sent back to a requesting application, they can be sent a-row-at-a-time every time a requesting application issues a FETCH request.
在将查询的结果发送回发出请求的应用程序之后,每当应用程序发出FETCH请求时,可以将结果逐行返回。
In practice, I have found fetched properties to be less useful and less flexible than either creating a stored fetch request or building the fetch request in code.
在实践中,我发现抓取的属性不太有用,比创建存储的抓取请求或者在代码中构建获取请求。
应用推荐