Mastering In CoreData (Part 1 Introduction)

Core Data

Core Data is a framework that you use to manage the model layer objects in your application. It provides generalized and automated solutions to common tasks associated with object life cycle (runtime) and object graph management, including persistence.

Model Layer Objects:
The model or data layer has objects that represent the state (past or present) and organization of the data needed by the application or view.

Login Screen

Sign in Button should enable or disable depends upon the model or data layer state. These things will maintain by the model layer.

Common tasks in Model Layer:

  1. Creation of Model

Note: These features are supported by Core Data. In this series we will look these feature in details with examples.


  1. Core Data is not an Object Relational Mapper (It’s much more than that)


  1. Core Data is a model layer objects framework

Terms in CoreData:

Managed Object Model → Core Data uses a schema called a managed object model — an instance of NSManagedObjectModel

Entity → Core Data entity is very similar to a table in a database. An instance of NSManagedObject

Attributes → Core Data Attribute is very similar to a column in a database.

Relationship → It’s a Core Data Attribute that refer to other entity.

What Next?

Well, in the next part we will discuss what is stack in core data.


Core Data stores thing in a way that looks very object oriented to our code . Entity refer to Class , attributes refereed to var and relationship refer to var pointing to other class.We will look these in details when we will be creating ManagedObjectModel and CRUD operation.

Senior iOS Engineer | HungerStation | Delivery Hero

Love podcasts or audiobooks? Learn on the go with our new app.