Hello All,
How to Create DB context connection string dynamically in ASP.Net Core.
I am new in asp core entity framework, my requirement is i have two type of database one is master and another is multiple TRAN database and each database details we keep in table (location table) in master (some other name db name) Database, so i have created one fixed DB context with connection string in appsetting.
Once bind the location table from first DB context i want to bind DB another DB context with new connection string. So that TRAN Model will intact only dynamically created DB connection string.
Please help me here or share any sample code that would be great