With reference to below given article:
https://www.c-sharpcorner.com/article/asp-net-core-web-api-with-dapper-and-vs-2017/
I want connection string to be get at runtime in the above given web api article.
I have one common DB in which I have all the client DB details with its connection string in the client table.
I have user table in which all the users with its client id.
When user logs into my system with its user name and password then I get which DB I have use with its connection string.
One solution I have is that in each and every method I have to send the DB name as the parameter.
But I want common wrapper class that handle the run time DB.
Mario ScheerenPosted May 16, 2019, 10:49 AM
Udai MathurPosted May 16, 2019, 8:40 AM
Mario ScheerenPosted May 16, 2019, 7:12 AM
Udai MathurPosted May 16, 2019, 6:47 AM
Mario ScheerenPosted May 16, 2019, 12:47 AM