Quickest way to implement multi tenant ASP.NET MVC Application

前端 未结 2 863
感情败类
感情败类 2021-02-04 17:40

I think I am not getting the meaning of any of this. My purpose is to create a multi tenant ASP.NET MVC Application.

I saw a great post on how to do this here , but Nhib

相关标签:
2条回答
  • 2021-02-04 18:30

    The thinks I like about MVC for multitenant applications are:

    • You can choose the View according to your tenant

    That was never easy in Webforms. Its easy to implement something in MVC like: There is a default View for every tenant, but if a tenant needs a special View, then the special View is taken. You will have to extend the Viewengine a little bit.

    • You can have Business Rules according to the tenant by using IoC

    By using StructureMap or others you can swap parts of your ServiceLayer

    I have one DB per tenant so I will not be of help at the DB - part.

    0 讨论(0)
  • 2021-02-04 18:32

    The closest thing to answer my question here, that I can find myself is the read on Mike Hadlow's blog

    Its detailed, but to the point, and I downloaded the SutekiShop app.

    I haven't yet reached the AHA! Moment yet, but it seems close.

    I believe the way he has implemented the multi tenancy was with the role id, I guess now I just have to keep reading and tweaking.

    His latest post (afaik) on the subject seems to address the issue with WCF use.

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