Save Operation

The save operation saves a record to the local database. In the case of an existing record, a save operation calls the update operation. If a record does not exist, the save operation creates a new record.

(void)save
SampleAppCustomer *customer = [ SampleAppCustomer find: 32]
//Change some sttribute of the customer record
customer.fname= @"New Name";
[customer save];