自定义组件和ASP.NET MVC [英] Custom components and ASP.NET MVC

查看:211
本文介绍了自定义组件和ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇,怎么在典型 ASP.NET MVC 心态人们可以建立一个平台,其他人可以开发插件。我的意思是,如何将这些插件是什么样子?

I was curious how in the typical ASP.NET MVC mentality one could build a platform that others could develop plugins for. I mean, how would those plugins look like?

像退出用户控件的WebForms,本身封装的所有层,或者三个不同的文件重新presenting模型视图和控制器。我应该制定一个 CMS 的核心,我想其他人建立插件以后。这心态是更好,经典的Web窗体或ASP.NET MVC?

Like exiting user controls for WebForms, encapsulating all layers in themselves, or three different files representing the model the view and the controller. I should develop the core of a CMS, that I'd like others to build plugins for later on. Which mentality is better for that, classic Web Forms or ASP.NET MVC?

我需要开发者能够分别建立的组件。是有可能封装了MVC的目录结构中的分量的DLL文件,然后当我引用的DLL文件,以便能够直接访问组件的模型,视图或控制器作为一般的MVC结构的一部分

I need developers to be able to separately build components for that. Is it possible to encapsulate the MVC directory structure in a component DLL file and then when I reference the DLL file, to be able to directly access the component's model, view, or controller as part of the general MVC structure?

推荐答案

最有前途的部分技术已经过在<一的形式来自于球员和lostechies.com Mvccontrib href=\"http://www.lostechies.com/blogs/hex/archive/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib.aspx\"相对=nofollow>便携式领域的。便携式领域允许整个MVC应用程序将被添加到现有的应用程序。因此,它不只是一个UI组件,还提供了所有的工作流程和屏融合也是如此。

The most promising component techniques have come from the guys over at lostechies.com and Mvccontrib in the form of Portable Areas. Portable Areas allows an entire MVC app to be appended onto an existing application. So its not just a UI component but also provides all the work flow and screen integration as well.

开放论坛做这样的事情为好。我不知道怎么回事,但它是非常即插即用。

Open Forum does something like this as well. I don't know how, but it is very plug and play.

有关直线上升的插件架构还有一个有趣的截屏和源$ C ​​$ C罗布·康纳利的链接文本。他以APP-code目录的优势,而无需修改的主要场所滑动新的插件到位。

For straight up plugin architecture there is an interesting screencast and source code for Rob Connery's link text. He takes advantage of the App-Code directory to slide new plugins into place without having to edit the main site.

这篇关于自定义组件和ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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