是ASP.net模型 - 视图 - presenter值得花时间? [英] Is ASP.net Model View Presenter worth the time?

查看:145
本文介绍了是ASP.net模型 - 视图 - presenter值得花时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个周末阅读ASP.net MVP模式,它似乎如果做在MVP模式的薪酬似乎断是在大项目一样,即使是最简单的任务耗费太多精力,但我觉得自己如果我要去跟着MVP。为什么不直接做项目的ASP.net MVC?

I'm reading about ASP.net MVP pattern over this weekend and it seem like even the most simple task take too much effort if do it in MVP pattern the pay off seem to be at larger project but i think to myself if i'm going to follow MVP. Why not just do the project in ASP.net MVC?

这是我在寻找MVP模式的原因是因为我在我所有的ASP.net网络表单注意到项目中有code很多code的背后只是事件,如果我一起处理有很多Web窗体上服务器控件,所以我一直在寻找,以减少和遇到MVP模式的方式。

The reason that I'm looking at MVP pattern is because I've noticed in all my ASP.net Webform projects there are a lot of code in the code behind just for event handling along if i have a lot of server control on the web form so i was looking at the way to reduce that and come across the MVP pattern.

是否值得遵循MVP模式或只是切换到ASP.net MVC?

Is it worth the effort to follow the MVP pattern or just switch over to the ASP.net MVC?

推荐答案

如果你开始一个新的项目,然后ASP.net MVC是一个更好的选择。但是,如果你只是想重构现有的项目如你刚才所说的,那么MVP是期权,因为没有简单的方法来对这些Web表单codeS转换为MVC。

If you start a new project, then ASP.net MVC is a better choice. But if you just want to refactor an existing project as you just said, then MVP is the option because there is no easy way to convert those web-forms codes to MVC .

这篇关于是ASP.net模型 - 视图 - presenter值得花时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆