How can I create a multitenant application with ASP.Net MVC? -


This question is different from the others because the questions I have seen so far are talking about the database. I understand the database side of the majority, but I'm not 100% fixed on the way to the front end.

I am working on a design for a product that will be basically hosted service for customers. As far as multitisi goes, you can think of a hosted fogbugs account. Customers sign up, they get their own subdomain, and then they go to customersubdomain.thenormalurl.com and enter a part of their application.

When customers sign up, we will need to set up a DNS record for the sub-domain, but from its application side, how can we "apply" the application to that customer? Should it be seen just url that a request has been made or is there any other way? It seems very simple to me, but maybe I'm trying to do something that should be simple.

How is this generally done in ASP.NET world?

Yes, just look at subdomains if your users log in, you can ignore subdomains And can find out who they are according to their login credentials. After finding out who they are, it is not getting the right data and showing the wrong data and this is where all the DB questions come in. You do 'scoping' by using different DB or by marking all your records with keys for the customer. That's why your app has to implement it.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -