In the guide documnet, there is already a tutorial about multi tenancy, It's great for the standalone app architecture,
But recently my project needs to shard DataBase by tenant Id, every tenant has an independent database, and one connection key may map to different connection strings.
I find it diffcult to handle this with Serenity, as I can not overrite static methods public static ConnectionStringInfo TryGetConnectionString(string connectionKey) in Serenity.Data.SqlConnections.
Does anyone meet this before?
I would appreciate any guidance.
why not make separate installs (like one app one DB) ?
You can use IIS location functionality and virtual directory
<configuration>
<location path="customer1">
<connectionStrings>
[...]
</connectionStrings>
</location>
<location path="customer2">
<connectionStrings>
[...]
</connectionStrings>
</location>
</configuration>
thanks @Estrusco
And how about Dot Net Core? (appsettings.json)
Does anyone have an example of MultiTenancy with core 2.x?