开发者

Which MVP frameworks exist for ASP.net?

Can someone provide basic sample / link for MVP Framework.

Need to design a 开发者_StackOverflow中文版website => is much more of Admin type site.

SQL Server as database backend.


Model View Presenter at MSDN:

http://msdn.microsoft.com/en-us/magazine/cc188690.aspx

MVP Framework at CodePlex:

http://www.codeplex.com/aspnetmvp


Check out the webforms MVP framework. Might be better than rolling out your own

http://webformsmvp.com/


You may want to check out the WebClient Software Factory from the Microsoft Patterns & Practices team. It's also here on Codeplex. It uses the MVP pattern, and adds a couple of helpful options to Visual Studio when you install it.


I've used with success the following open source project to implement the MVP pattern in ASP.NET + WinForms:

  • Castle Project.

Take a look at my blog post which shows a complete ASP.NET Web Application sample:

Model View Presenter pattern with Castle in ASP.NET


Also look at ASP.Net MVC.


Don't forget the Microsoft Prism project:

http://msdn.microsoft.com/en-us/magazine/cc785479.aspx

Here's a quickstart:

http://www.codeproject.com/Articles/35775/Model-View-Presenter-and-Model-View-ViewModel-in-P.aspx?msg=3013396


CodeProject has a good example on how you can start with .NET MVP framework: http://www.codeproject.com/KB/architecture/DotNetMVPFramework_Part1.aspx


Martin Fowler has written quite a bit on various patterns used for Enterprise level software.

His website is here. He gives several variants of MVP so you can pick the one that best suited for your situation.


I found "Polymorphic Podcast : Design Patterns Bootcamp: Model View * Patterns" very useful. It has several concise walkthrough videos.


Check out this simple example which demonstrates the basics of MVP:

http://www.avantprime.com/articles/view-article/2/model-view-presenter-(mvp)-design-pattern-in-asp.net

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜