Skip to content

Instantly share code, notes, and snippets.

@rstackhouse
Created September 17, 2013 16:02
Show Gist options
  • Save rstackhouse/6596472 to your computer and use it in GitHub Desktop.
Save rstackhouse/6596472 to your computer and use it in GitHub Desktop.
Validate connection strings with connection string builder.
var csb = new DbConnectionStringBuilder();
csb.ConnectionString = "data source=(local);";
Console.WriteLine(csb.ContainsKey("Data Source"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment