Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Set the connection string for Entity Framework at runtime

, 18 Nov 2011
Rate this:
Please Sign up or sign in to vote.
The first instruction in .NET 4 becomes:string connectionString = System.Configuration.ConfigurationManager. AppSettings.Get("ConnectionString");

The first instruction in .NET 4 becomes:

string connectionString = System.Configuration.ConfigurationManager.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author


Belgium Belgium
No Biography provided

Comments and Discussions

Questionjust getting Pinmembercalamar88816-Dec-13 7:16 
GeneralMy vote of 1 PinmemberPhil_Murray17-Jul-12 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 18 Nov 2011
Article Copyright 2011 by RedAquarius
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid