开发者

Sproutcore vs Cappuccino data model layer

I was going through cappuccino. I did not find any de开发者_C百科tails about the data(model) layer. The same exists in Sproutcore. Am I missing something?


In SproutCore the model layer provides full object-relational mapping and manages things like storage, state, querying and back-end retrieval of the data. Cappuccino does not provide a model layer in the same sense, so from what I've seen (e.g. http://github.com/suitmymind/cappuccinocasts-episodes/tree/master/009) you would instead directly send requests to your back-end and then load the results into objects and handle state, querying, etc. yourself.


Like bruz says, Cappuccino is probably more freeform at the data layer than SproutCore. That said, you could plug in Nicholas Small's CPActiveRecord or Raphael Bartolome's Core Data Cappuccino to get a more automated model experience which also manages server connectivity in various ways.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜