c# - Multiple Database with single Website using Database Overwrite the Connection String -


i have multi tenancy web application. want publish 1 website support multiple database connection string save in database

example:

login user-a --> connect database-a login user-b --> connect database-b

master database save user , connection string.

but problem when user login application working correctly(using db-a) once user-b login how overwrite connection string. both user show db-b data.

can please

thanks

you can use session assigning connection string based on type of user. on user logout, close session. stop values being overwritten.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -