All C# extension methods for type connectionstringsettingscollection
-
GetOrThrow(string connectionStringName)
By default, ConfigurationManager.ConnectionStrings returns null if the requested connection string doesn't exist. Use this extension method if you want something a bit more snappy - an exception.