json - CoreData to store the server content -


i have specific question. have requirements read data server (json format), store in core data , update ui (tables) reading data core data. reason need store data in core data because have requirement show data offline (when there no network).

so doing this:

read json server, create managed object entities , store in core data.

upon success of save of core data, send event view controller read data core data.

the question is: can/should view controller use managed object entity directly returned core data or should create custom entities consumed uiviewcontroller?

what should strategy if entity not found in core data need go server again , store in core data.

in general common scenario , seeking experts advise how go designing it?

thanks in advance!


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -