开发者

Is S#arp applicable in classic ASP.NET or even WinForms?

I know S#arp architecture 开发者_开发技巧is built for ASP.NET MVC. But I'm wondering if it can be used in classic ASP.NET (WebForms) or even desktop applications like WinForms or WPF.

Thnkas a lot.


Iain, You most definitely could use S#arp Architecture in an application other than ASP.NET MVC. I use it to power several console applications and we have a few windows services running it as well.

You would want to look at the S#arp Architecture Contrib project to use it in a non MVC or Web Form app. To use it in web forms, you would use spin it up as you would a MVC application, but using it in your web forms would be slightly different. In this case, look for an MVVM or MVP solution and replace as you need.


As far as I understood from your question, you should have a look at the MVP pattern. You can create your own Models and Views by yourself with asp.net forms.


I'm not sure about WebForms or WPF but if you want to use it for WinForms, check this out:

wiki.sharparchitecture.net/ContribNonWebHowTo.ashx

I have found it to be very workable.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜