How is multi-tenancy done in the Orchard Project

前端 未结 3 1062
滥情空心
滥情空心 2020-12-05 19:42

I have been stepping through the source code for Orchard CMS to learn how they have tackled Multi-tenancy.

OrchardProject

Can someone point out the files or

相关标签:
3条回答
  • 2020-12-05 20:20

    You need to install the multi-tennancy module from the orchard gallery, enable it, and configure it in settings.

    The code you want to look at is, the code that is in the multi-tennant module subfolder.

    However, knowing how Orchard does multi-tenancy won't much help you. Orchard has a very complex routing and extension system, with tons of layers and dynamic dispatch points. You can't simply drop in Orchard's internal system into a simple MVC app without, basically, recreating all of Orchard's infrastructure.

    Orchard is not a good example of how to write a stand-alone MVC app, because it has so many requirements for flexibility, and its system is so heavly based on the dynamic claysharp stuff.

    Unless there is a reason you need to use the Orchard method specifically, you'd be better suited looking at solutions like this http://weblogs.asp.net/zowens/archive/tags/Multi-tenancy/default.aspx

    0 讨论(0)
  • 2020-12-05 20:21

    There are some sample projects demonstrating multi-tenant deployments:

    Cloud Ninja Cloud Samurai

    0 讨论(0)
  • 2020-12-05 20:35

    Perhaps this will help you. I implemented a complete MVC multi-tennant app. Here are some links I found handy and some sample apps:

    http://msdn.microsoft.com/en-us/library/aa479086.aspx

    http://weblogs.asp.net/zowens/multi-tenant-asp-net-mvc-introduction

    http://lonetechie.com/2012/09/25/multi-tenant-architecture-with-asp-net-mvc-4/

    http://codeofrob.com/archive/2010/02/14/multi-tenancy-in-asp.net-mvc-controller-actions-part-i.aspx

    http://mvcex.codeplex.com/

    http://www.developer.com/design/article.php/10925_3801931_2/Introduction-to-Multi-Tenant-Architecture.htm

    http://msdn.microsoft.com/en-us/library/aa479086.aspx#mlttntda_cc

    http://lukesampson.com/post/303245177/subdomains-for-a-single-application-with-asp-net-mvc

    http://code.google.com/p/multimvc/

    http://www.agileatwork.com/bolt-on-multi-tenancy-in-asp-net-mvc-with-unity-and-nhibernate/

    http://ayende.com/blog/3530/multi-tenancy-approaches-and-applicability

    http://weblogs.asp.net/zowens/archive/tags/Multi-tenancy/default.aspx

    http://cloudsamurai.codeplex.com/

    http://cloudninja.codeplex.com/

    http://msdn.microsoft.com/en-us/library/hh534484.aspx

    Even starting from scratch, you are in for a world of hurt. The MVC framework does very little to help you address the issues.

    0 讨论(0)
提交回复
热议问题