Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
Connection String magic with Whidbey - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, MonoTouch for iPhone, MonoDroid for Android, and Windows Azure.

News

Personal Blog

Work Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

Connection String magic with Whidbey

Within the System.Data.Common namespace is the DbConnectionStringBuilder class.  This class allows you to manage and easily parse the connection string to make changes as necessary within your application.  Why would you want to do this?  Well, you might have a database management application and want to change values within the connection string so that you can easily make move between one database session and another.  This class is very cool.  Check it out.

Wally

Comments

JosephCooney said:

Why would you want to do this? Why WOULDN'T you want to do this? Connection strings are so non-OO I am amazed they are still around. Imagine if every other object in the .NET framework took a string of key-value pairs delimited with ; characters as part of their constructor, where each key corresponded to a property but did not actually have the same name as the property, and where the same property could be assigned with multiple "keys".
# September 6, 2004 7:01 PM

Jason Mauss said:

What's the difference between this DbConnectionStringBuilder class and the DBConnectionString class in .NET v1.1 ?
# September 6, 2004 7:40 PM

Jason Mauss said:

Sorry - DbConnectionString is an internal class in the System.Data.Common namespace in v1.1 so you can't access it (yet).
# September 7, 2004 2:57 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)