开发者

use odata or MVC to return json?

I am trying to use ajax to do CRUD. Should I use ODATA or MVC? i am also planning to use json in mobile platform as well.

开发者_高级运维Thanks guys


Somewhat subjective - but the two key things with ODATA are that a) huge amounts of heavy lifting is done for you at the server end and b) that there are also libraries to help at the client end. Downside is that you have to do what it does although since you're pointing it at entities that can be quite complex and is flexible.

With MVC you have to do all your own work but in return you get exactly what you need.

All other things being equal, I'd probably start with ODATA...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜