I am developing an application in Swift and started using Core Data recently.
I must define which attribute to my entity will be my primary key. For example:
I have an entity that has the attributes of the class:
I need the "id" attribute is my primary key.
May be the same in Objective-C, just need to know how to define it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…