Relationships Between Entities in Core Data. Part1 — Create

Andreea Andro
10 min readApr 22, 2021

Core Data comes with its own vocabulary. Here’s a quick rundown of some terms you’ll commonly encounter:

  • An entity is a class definition in Core Data. The classic example is an Employee or a Company. In a relational database, an entity corresponds to a table.
  • An attribute is a piece of information attached to a particular entity. For example, an Employee entity could have attributes for the employee’s name, position and salary. In a database, an attribute corresponds to a particular field in a table.

--

--