How to define my Primary Key?

Asked

Viewed 88 times

0

I am developing an application in Swift and started using the Core Data recently. I need to define which attribute of my entity will be mine Primary key. For example:

I have an entity that has class attributes:

  • id
  • name
  • age

I need the attribute "id" to be mine Primary key.

It may be in Objective-C really, I just need to know how I define it.

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.