© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. TsadokUnleash Core Datahttps://doi.org/10.1007/978-1-4842-8211-3_5

5. Contexts

Avi Tsadok1  
(1)
Tel Mond, Israel
 

Good programmers know what’s beautiful and bad ones don’t.

—D. Gelernter (Machine Beauty, Basic Books, 1998)

Until now, we’ve discussed how to set up our Core Data stack and define our entities and their relationships, but we really haven’t talked about working with these entities.

When I say “working,” I mean creating entities and fetching, updating, or deleting them.

Well, now we have reached the money time!

In this chapter, we will learn
  • What are contexts

  • How to insert, fetch, and delete objects

  • How to predefine fetch requests in our data model ...

Get Unleash Core Data: Fetching Data, Migrating, and Maintaining Persistent Stores now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.