Hi,
I'm pretty new to the databases and i would like to know which is the best choice for saving object data. let's make an example:
a recipe application - a simple application where i can write and save my fav recipes and edit them when i need.
I have model class that rapresent recipe, ingredient.
recipe class would have attributes like name ( string ), id ( int ) ingredients ( array(int) ), image ( string ), duration ( int ), level ( int )
ingredient would have attributes like name ( string ), id ( int )
which would be the best way to save the objects?
I want to use sqlite instead of plist and core data
if so, what would be best option for saving objects?
should i save the objects using an archive? ( im using objective c, that use NSData or NSKeyedArchive system ) or should i just save the primitive data in tables? something like
table recipe: recipeName(string), recipeID(int primarykey), recipeDuration(int), level(int)
table ingredient: ingredientName(string), ingredientID(int primaryKey), ingredientImage
which is the best way???
I'm pretty new to the databases and i would like to know which is the best choice for saving object data. let's make an example:
a recipe application - a simple application where i can write and save my fav recipes and edit them when i need.
I have model class that rapresent recipe, ingredient.
recipe class would have attributes like name ( string ), id ( int ) ingredients ( array(int) ), image ( string ), duration ( int ), level ( int )
ingredient would have attributes like name ( string ), id ( int )
which would be the best way to save the objects?
I want to use sqlite instead of plist and core data
if so, what would be best option for saving objects?
should i save the objects using an archive? ( im using objective c, that use NSData or NSKeyedArchive system ) or should i just save the primitive data in tables? something like
table recipe: recipeName(string), recipeID(int primarykey), recipeDuration(int), level(int)
table ingredient: ingredientName(string), ingredientID(int primaryKey), ingredientImage
which is the best way???