I have , for example, two entities called Class
and Student
. Both entities are connected by a One-To-Many relationship, "Class" has a ClassID field and Student has both a ClassID and StudentID fields.
I have a couple of questions on this situation:
Sorry for the many question and I greatly appreciate any assistance on this :)
Your ClassID is just user data as far as Core Data is concerned. It doesn't take part in the relationships.
Second option. Core Data persists objects and their relationships, so the strategy is to update the objects and then save them.
Yes, though it's frequently true that apps will already have a related record loaded for the purpose of having the user indicate the connection they want.
Calling your Class class 'Class' is going to be confusing. :-)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.