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)
-
0
Hello
I am waiting for your response. :)
-
0
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.