Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can we set primary key in core data

I am making a application in which i use core data . Now in this i need to create a primary key same as we create in sqlite (auto increment type ). Is this possible with core data .If yes then how any link or suggestion so as how to proceed for the same.

Regards Mrugen

like image 897
mrugen munshi Avatar asked Dec 17 '22 12:12

mrugen munshi


1 Answers

Since core data is a persistance framework more than a general purpose database, it abstracts the primary key.

like image 50
Peter DeWeese Avatar answered Dec 19 '22 02:12

Peter DeWeese