/// <summary> /// Create a connection from a settings. /// </summary> /// <param name="connectionString"></param> /// <returns></returns> private static ConnectionData InnerCreateConnection(ConnectionStringSettings connectionString) { DbProviderFactory factory = DbProviderFactories.GetFactory(connectionString.ProviderName); return(ConnectionData.CreateConnectionData(factory, connectionString.ConnectionString)); }