Adding a new Entity in Coredata?
Hello Guys,
I have an application with the Coredata where it has already designed entity,attributes,relationships.I want to add one more entity to the existing core data.I had a backend database where you can add,edit or delete in the application using iPad (Dynamically) and it (New changes)are synced with the backend database.My question is how can i implement the new entity in the coredata according to the database values in the backend.
Ex:I have to create a view called myview.and it has newname and edit name as the bar buttons on the tool bar.now when i press newname the new view should be shown and i have the firstname and lastname as the text fields to enter the data by the user.How can can i relate the entity to the backend database table(Using the primarykey as lastname).How can create the .h and .m file for the entity created in the Coredata?
I know its hard.Can anybody just give me an approach for connecting the coredata entity to the backend server and also the creation of .h and .m files for the created entity?
|