I'm developing an application in Swift
and started using Core Data
recently.
I need to define which attribute of my entity will be my primary key . For example:
I have an entity that has the attributes of the class:
- id
- name
- age
I need the "id" attribute to be my primary key .
It can be in Objective-C
itself, I just need to know how I define it.