我试图了解如何在解决方案中创建一个作为 VS2010 项目存在的 ASP.NET MVC 站点,然后对于多个“租户”,我将创建一个从该站点继承的站点。这样可以灵活地将模块化功能添加到一个而不影响另一个,并且两者都可以从核心库优化中受益。
这是一个疯狂的想法吗?这种事情存在哪些模式?我为基于 web 的站点做了类似的事情(将 DLLS 添加为插件),但在 MVC 中没有。
A "tenant" is a business client. Each already has their own MSSQL database and seperate processing around them, each client is in its own silo. The databases are similar with a few features added here and there, they are versioned and deployed seperately, that whole process works well. A client has n logons. I want to develop a single "base site" that can then be used to give function to a tenant, and all activities are segerated for a tenant to a single database. Where things get ugly is how I can add a new component (say a forum) to one tenant site without mucking up the site experience for other tenants.
All ideas appreciated. Thanks.