Click here to Skip to main content
13,087,566 members (95,592 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

12.5K views
4 bookmarked
Posted 20 Nov 2011

Set the connection string for Entity Framework at runtime

, 20 Nov 2011
One possible way is to do it the following way: How to change the connection string in the EntityFramework? [^].

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

2 Aug 2011
Bahram Ettehadieh
2 alternatives  
This shows how to set or change the connection string for Entity Framework at run time (programmatically)
18 Nov 2011
RedAquarius
The first instruction in .NET 4 becomes:string connectionString = System.Configuration.ConfigurationManager. AppSettings.Get("ConnectionString");

License

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

Share

About the Author

member60
Software Developer
Other Other
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 20 Nov 2011
Article Copyright 2011 by member60
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid