1
Reply

Asp.net mvc updating repository class.

Dmkproject Dmk

Dmkproject Dmk

Jun 2 2016 2:58 AM
183
  I want call connection string dynamically without mofifying connection string in web config.As i am creating project for SAAS.So i can handle multiple users request with multiple databases.
 
I have tried to update it by passing variable but it showing error.So please let me know the righ t way.Thanks in advance.
 
 
 
My code:
string name="";
db_hrEntities context = new db_hrEntities(name); Now this name variable i cant paas.
 

Answers (1)