core-data icon indicating copy to clipboard operation
core-data copied to clipboard

how to set primaryKey

Open coolboy-ccp opened this issue 5 years ago • 3 comments

coolboy-ccp avatar Oct 14 '19 03:10 coolboy-ccp

You do no get access to a primary key. CoreData is not a database.

tkrajacic avatar Oct 14 '19 09:10 tkrajacic

Thanks! And would you know how to ensure that the model is not repeatedly inserted. Now I can only query to see if it exists, and then decide whether to update or insert it.

coolboy-ccp avatar Oct 15 '19 03:10 coolboy-ccp

I konw how to handle it already! Thank you!

coolboy-ccp avatar Oct 15 '19 07:10 coolboy-ccp