Base solution for your next web application
Open Closed

We want your suggestion and best solution tenant management #768


User avatar
0
Qloud created

Hello Hikalkan,

We are using the ASP.NET zero framework.

The requirement is we want to manage one master database in which all customer, tenant detail we will store. And each tenant has a separate database. Same tables inside database just data is different.

Can you please suggest us easiest way to do it into ASP.NET zero framework MVC only.

Awaiting for your response.

Thanks, Rama


2 Answer(s)
  • User Avatar
    0
    Qloud created

    Hello

    I am waiting for your response. :)

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Sorry, I skipped your question.

    This is widely asked question, you can searh in the forum (just one example: #748). AspNet Zero does not support db per tenant architecture as default. I suggest you to create a 2nd dbcontext and store your tenant-specific entities in this dbcontext and then dynamically set it's connection string based on current tenant.

    Have a nice day.