模块化架构 - ASP.NET MVC [英] Modular Architecture - ASP.NET MVC

查看:121
本文介绍了模块化架构 - ASP.NET MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索(谷歌和SO)关于这个话题,但没有找到一个彻底回答我的问题(S)。

I've searched (google and SO) about this topic and couldn't find a thorough answer to my question(s).

我建立一个ASP.NET MVC 2应用程序将被分配给其他人(含源$ C ​​$ C)。这些人将需要创建一个使用应用程序的基本模块/插件。

I'm building an ASP.NET MVC 2 application that will be distributed to other people (with source code). These people will need to create modules/plugins that use the application's base.

该基地是一个简单的ASP.NET MVC应用程序的LINQ到SQL文件,资料库,授权/会员。

The base is a simple ASP.NET MVC Application with Linq-To-Sql file, repositories, authorization/membership.

是否有可能创建一个插件,将通过简单的文件夹中添加一个.dll文件工作?

Is it possible to create a plugin that would work by simply adding a .DLL file in a folder?

现在,你可以创建一个通过打开基本应用程序的源项目,创造了几个控制器/视图,做出头,使用基本应用程序的授权/会员和存储库插件。你也将需要编辑的LINQ到SQL文件,并添加好需要的任何表。

Right now, you can create a "plugin" by opening the source project of the base application, creating a few controllers/views that do somethings, using the base application's authorization/membership and repositories. You would also be required to edit the Linq-to-Sql file and add in any tables that you need.

不过,安装这个插件,我需要控制器/视图这个插件复制到我的基本应用程序和编辑的LINQ到SQL类,包括为这个插件的表,然后生成解决方案。是否有一个更简单的方法?

However, to "install" this plugin, I would need to copy the controllers/views for this plugin into my base application and edit the Linq-to-Sql class to include the tables necessary for this plugin, then build the solution. Is there a simpler method?

我看了.DLL插件,但是怎么会有人建立这样从基础应用开始插件。

I read of .DLL plugins, but how would someone build a plugin like this starting from the base application.

如果在插件创建与主应用程序中的用户表的外键的表,怎么做一件独立的那些表/在一个单独的文件关系,并具备基本应用程序识别这些关系?

If the 'plugin' creates tables with foreign keys of the "User" table in the main application, how does one separate those tables/relationships in a separate file and have the base application recognize those relationships?

正如你所知道的,我问的是那种所有的地方多的问题。这对我来说是一个新的话题/问题,我不知道从哪里开始。有我的应用程序使用一个单独的.dll文件交互的主题仅仅是一个概念是陌生。

As you can tell, I'm asking multiple questions that are kind of all over the place. This is a new topic/issue for me and I have no idea where to start. Theme mere concept of having my application interact with a separate .DLL file is foreign to me.

任何帮助/链接将不胜AP precaited。

Any help/links would be greatly apprecaited.

推荐答案

这是否回答同样的问题:<一href=\"http://stackoverflow.com/questions/340183/plug-in-architecture-for-asp-net-mvc\">http://stackoverflow.com/questions/340183/plug-in-architecture-for-asp-net-mvc?

Does this answer the same question: http://stackoverflow.com/questions/340183/plug-in-architecture-for-asp-net-mvc?

这篇关于模块化架构 - ASP.NET MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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