title: C# Retrieving correct DbConnection object by connection string
body: <p>I have a connection string being passed to a function, and I need to create a DbConnection  based object (i.e. SQLConnection, OracleConnection, OLEDbConnection etc) based on this string.</p>
  
  <p>Is there any inbuilt functionality to do this, or any 3rd party libraries to assist. We are not necessarily building this connection string, so we cannot rely on a format the string is written in to determine its type, and I would <em>prefer</em> not to have to code up all combinations and permutations of possible connection strings</p>