Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

ASP.NET Core Multi-tenancy: Data Isolation with EF #2171


User avatar
0
jholla created

For the .NET Core version, how hard would it be to add a feature that creates a seperate dB for each tenant?

<ins>SEE HERE:</ins> <a class="postlink" href="https://msdn.microsoft.com/en-us/magazine/dn948104.aspx">https://msdn.microsoft.com/en-us/magazine/dn948104.aspx</a>

<a class="postlink" href="http://benfoster.io/blog/aspnet-core-multi-tenancy-data-isolation-with-entity-framework">http://benfoster.io/blog/aspnet-core-mu ... -framework</a>

<a class="postlink" href="http://stackoverflow.com/questions/32865627/using-multiple-databases-with-single-dbcontext-and-entites-and-generating-conn-s">http://stackoverflow.com/questions/3286 ... ing-conn-s</a>

<a class="postlink" href="http://stackoverflow.com/questions/31170814/entity-framework-6-creating-database-with-multiple-contexts">http://stackoverflow.com/questions/3117 ... e-contexts</a>


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you want to do this on new tenant registeration ? Currently you can create seperate databases for any tenant you like by giving a connection string.