I have entity called "Student" which has column called "firstName" and "lastName". My Existing entity looks like this
| firstName | lastName |
|---|---|
| Peter | Morgan |
| Adam | Hayden |
| Andrew | Giles |
Now, I have created a new attribute called "compositeName" which should contain joint name like "Peter Morgan", "Adam Hayden". How can I achieve this with NSBatchUpdateRequest in core data?
After batch update entity should look like this
| firstName | lastName | compositeName |
|---|---|---|
| Peter | Morgan | Peter Morgan |
| Adam | Hayden | Adam Hayden |
| Andrew | Giles | Andrew Giles |
I searched for tutorials on web but I couldn't find one with dynamic values. I found solution in which NSBatchUpdateRequest contains static value