title: how to implement Multi-Tenant functionality in asp.net-core
body: <p>I have an Asp.net Core application I want to be able to allow multiple/ different Tenant(Client)to access the same application but using different url's. I have common database for all tenant(client).
  So It is the main part I want to host my application in a domain say... www.myapplication.com then allow different Tenant(client) to access the same application using </p>
  
  <p>1.www.TenantOne.myapplication.com </p>
  
  <p>2.www.TenanatTwo.myapplication.com.</p>
  
  <p>3.www.{TENANCY_NAME}.myapplication.com</p>
  
  <p>I can't find any info on how to do this and I'm stuck.
  How to do it? Please provide the code. Thanks.</p>