Core Data is poweful framework on iOS SDK that allows programmer to store and manage the data in Object Oriented way.
In this I'll explain core data stack :
Core Data stack composed of following layers.
1. Managed Object Model
2. Manged Object Context
3. Data Model
4. Persistant Store Coordinator
5. Persistant Object Store
Managed Object Model : It's collection of entity descrition, think about it as database schema and It represent our data model. NSManagedObjectModel class is use to implement it.
Managed Object Context : It keep track of all things we are doing with managed objects, it's a like a virtual board.
Managed Object : Represent the entity we want to store in core data. In swift NSManagedObject instances are use to represent our data.
Persistant Store : The object that represent actual db on disk. It is responsible to persist the data on disk.
Persistant Store Coordinator : It's the object that coordinate reading and writing of infofrom and to persistant store. It act as bridge between Managed object context and persistant store.
Thanks
Related Tags
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Varun Wadhwa
Varun is a mobile developer with experience in various technologies like Titanium , Cordova and native iOS development.