User-350307771 posted
Hello there.
I am developing a multi tenant application. I keep customers on Db1Context and this customers data on Db2Context.
D2Context will have a private database for each client.
For example, I created a subdomain https://tenant1.mysite.com - https://tenant2.mysite.com - tenant3,4,5. But
I could not get the value of request.host. returns null all the time. In short, how should I go about creating a separate database structure for a single application and each customer?
I searched a lot on google. but none of them provided a solution. I'm using asp.net core 5.0. thanks.