I am working on a large ASP.NET MVC site, a commercial service sold to customers. We sell mainly to small and large institutions so that they do not shrink. These large customers will ask us to make settings, mostly wider than, but including customizing the layout according to their site.
Our current thinking is that even with MVC its natural conclusions followed with the help of very simple controllers that only call different code (as recommended), looks will be a difficult problem, because they do not lend themselves to this type in any case not with Razor, as we used. It is difficult to subclass them and say "for this client, do something a little extra"; especially, itβs hard to serve slightly different HTML for the same design.
We cannot understand how to make work with several tenants and individual tenants work cleanly, and we do not want to deploy a code base, even if the settings for one or more clients are exhaustive. (As much as possible, we want to keep the database structure isomorphic for all our customers, which, I think, is how we do it for multi-tenancy, but each tenant must have its own IIS website because of the size and isolation. ) Even if we came up with a way to overlay the layer of user views, this would provide the possibility of minor logical inconsistencies in the views.
What is the current state of affairs? What are war stories? (This may be subjective, but basically objective is that if there is a template or approach that completely reduces it to its essence, of course, the correct answer. And I think this is an interesting question.)
I am pleased to provide more details.
source share