0

I have an EF connection string in my config but I wish to programmatically change the dbname on the fly.

The properties appear to be read only - anyone know how to do this?

Thanks.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Mr Me
  • 33
  • 10
  • 3
    [Connecting to database for Multi-Tenant application?](http://stackoverflow.com/questions/32717832/connecting-to-database-for-multi-tenant-application) – Reza Aghaei Oct 06 '16 at 00:54
  • Look at the [`SqlConnectionStringBuilder`](https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnectionstringbuilder(v=vs.110).aspx) class – marc_s Oct 06 '16 at 05:00

0 Answers0