Chapter 5.2 - Core Data set up for multiple Entities


Hi Paul,

I am currently learning Chapter 5 for Core Data as i need it for my app that i am working on alongside your lessons. Here’s my first query:

5.2 Core Data Managed Object Model. I need 3 entities in my app. I have loaded them into the model with the attributes within. When adding them to the swift file, i quickly learnt that you can only have 1 NSManaged object. So, if i have 3 entities in the model, when it comes to the swift file, do I list all attributes (regardless of which entity its in) under the one class?

Screen shots attached:

Many thanks,