开发者

Data access class in iPhone/iPad

开发者 https://www.devze.com 2023-02-11 10:03 出处:网络
N开发者_如何学运维ow I have a few classes that work with database. I wonder would it be better to have one (Data Access Layer, singleton) class that contain CRUD methods, database connection logic etc

N开发者_如何学运维ow I have a few classes that work with database. I wonder would it be better to have one (Data Access Layer, singleton) class that contain CRUD methods, database connection logic etc?


yes, you could use a singleton for that but why not use core data instead?

0

精彩评论

暂无评论...
验证码 换一张
取 消