changing the connection String at runtime

Thread is closed for posting
3 posts, 0 answers
  1. Sakar
    Sakar avatar
    3 posts
    Member since:
    Nov 2012

    Posted 08 Nov 2012 Link to this post

    How to change the connection string of the database at run time.

    Have a nice day.

  2. Hristo Marinov
    Hristo Marinov avatar
    13 posts

    Posted 12 Nov 2012 Link to this post

    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.
  3. Jesus
    Jesus avatar
    2 posts
    Member since:
    Jan 2016

    Posted 24 Jan 2016 Link to this post

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


Back to Top