@@ -13,7 +13,7 @@ namespace Simple.Data.Ado
1313 using Schema ;
1414
1515 public class ProviderHelper
16- {
16+ {
1717 private readonly ConcurrentDictionary < ConnectionToken , IConnectionProvider > _connectionProviderCache = new ConcurrentDictionary < ConnectionToken , IConnectionProvider > ( ) ;
1818 private readonly ConcurrentDictionary < Type , object > _customProviderCache = new ConcurrentDictionary < Type , object > ( ) ;
1919
@@ -31,7 +31,7 @@ public IConnectionProvider GetProviderByFilename(string filename)
3131
3232 private IConnectionProvider LoadProviderByConnectionString ( ConnectionToken token )
3333 {
34- var dataSource = GetDataSourceName ( token . ConnectionString ) ;
34+ var dataSource = GetDataSourceName ( token . ConnectionString ) ;
3535 if ( dataSource . EndsWith ( "sdf" , StringComparison . CurrentCultureIgnoreCase ) && File . Exists ( dataSource ) )
3636 {
3737 return GetProviderByFilename ( dataSource ) ;
@@ -41,16 +41,16 @@ private IConnectionProvider LoadProviderByConnectionString(ConnectionToken token
4141 provider . SetConnectionString ( token . ConnectionString ) ;
4242 return provider ;
4343 }
44-
45- internal static string GetDataSourceName ( string connectionString )
46- {
47- var match = Regex . Match ( connectionString , @"data source=(.*?)(;|\z)" ) ;
48- if ( match != null && match . Groups . Count > 1 )
49- {
50- return match . Groups [ 1 ] . Value ;
51- }
52- return string . Empty ;
53- }
44+
45+ internal static string GetDataSourceName ( string connectionString )
46+ {
47+ var match = Regex . Match ( connectionString , @"data source=(.*?)(;|\z)" ) ;
48+ if ( match != null && match . Groups . Count > 1 )
49+ {
50+ return match . Groups [ 1 ] . Value ;
51+ }
52+ return string . Empty ;
53+ }
5454
5555 private static IConnectionProvider LoadProviderByFilename ( ConnectionToken token )
5656 {
@@ -218,5 +218,5 @@ public string ProviderName
218218 get { return _providerName ; }
219219 }
220220 }
221- }
221+ }
222222}
0 commit comments