Relationships Between Entities in Core Data. Part1 — Create
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 aCompany
. 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’sname
,position
andsalary
. In a database, an attribute corresponds to a particular field in a table.