开发者

asp.net mvc application improving Efficiencey suggestions

Please can any body provide me suggestions for standards that you feel are necessary or are areas where effciency/maintenance would improve through standardization.

Like GUI,Controller,Repository.

Any ideas reagrding ViewModels can be specified under the Controller section? if we plac开发者_Go百科e any good results?

Thanks


The simple fact is that each shop is its own and has its own personalities that prefer to code a certain way. If you search google code or gitbut for Repository.cs or RepositoryBase.cs you'll fine 100 different implementations of the same pattern! Don't even get me started on what people thing belongs in the ControllerBase.cs or not.

There is also a huge difference between different types of projects. Intranet style apps with MVC are completely different from large scale web applications. Service layers vs direct db queries, NoSql vs traditional SQL approaches, domain driven design vs persistence direct apps, FluentVal vs DataAnnotations.

My answer is there is no answer. Do what works for you, makes the most sense to the team your own and keeps your code clean and flexible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜