开发者

use odata or MVC to return json?

开发者 https://www.devze.com 2023-01-11 13:30 出处:网络
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.

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

精彩评论

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