Click here to Skip to main content
11,438,007 members (45,629 online)
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Set the connection string for Entity Framework at runtime

, 18 Nov 2011 CPOL
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 Pin
calamar88816-Dec-13 8:16
membercalamar88816-Dec-13 8:16 
GeneralMy vote of 1 Pin
Phil_Murray18-Jul-12 0:41
memberPhil_Murray18-Jul-12 0: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 | Terms of Use | Mobile
Web01 | 2.8.150506.1 | Last Updated 18 Nov 2011
Article Copyright 2011 by RedAquarius
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid