We use option #3 and have a website that the users login to then the user has permissions to specific companies and roles within that company. If the user has multiple companies then a drop down is shown at the top allowing the user to switch to another company. What ever the user has last chosen becomes there default company each time they login until they change it again.
Works very well for us.
You can implement multi tenancy in many different ways:
Options 1 and 2 don’t require any change in your application and any project would work. You can use any of our samples in github or any of your Wisej apps.
Options 3 has to be implemented in your application. There is no sample project that would fit a custom architecture. It depends on how you provision your database and it depends on your data structure, etc.
Any concept that applies with any .NET (web or not web ) app works when using Wisej.
My company uses #2 giving each tenant a dedicated app domain and IIS site.
Feel free to ask any specific questions. We append the tenant to the domain like customername.cloudxxxxxxx.com and then use Application.RequestUri to get customername.
Please login first to submit.