This is a migrated thread and some comments may be shown as answers.

changing the connection String at runtime

2 Answers 112 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sakar
Top achievements
Rank 1
Sakar asked on 09 Nov 2012, 01:28 AM
How to change the connection string of the database at run time.

Have a nice day.


2 Answers, 1 is accepted

Sort by
0
Hristo Marinov
Telerik team
answered on 12 Nov 2012, 11:27 AM
Hello Sakar, 

With Telerik OpenAccess ORM you can set the connection string at runtime - here you can find more information about how to do that.

Changing the connection string at runtime depends on the scenario you use and is generally not recommended. The new connection string has to be for a database with the same schema like your model. For working with multiple models, you can look here.

If you have any questions or you need some clarifications regarding the approaches mentioned, do not hesitate to get back to us with more details about your scenario.  


All the best,
Hristo Marinov
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
0
Jesus
Top achievements
Rank 1
answered on 24 Jan 2016, 12:33 PM

Hi. Is there a simple way to select mvc grid database at runtime and not to configure/scaffold from the beginning?.

Thanks!

Tags
Design Time (Visual Designer & Tools)
Asked by
Sakar
Top achievements
Rank 1
Answers by
Hristo Marinov
Telerik team
Jesus
Top achievements
Rank 1
Share this question
or