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
Post a Comment