[gentle] Bug in Gentle 1.5.0
Brought to you by:
mnmr
From: Bill S. <bso...@id...> - 2008-04-16 19:44:45
|
In ProviderFactory.cs: public static IGentleProvider GetProvider( Type type ) { NamespaceProvider np = NamespaceProviders.GetNamespaceProvider( type ); if( np != null ) { return GetProvider( np.ProviderName, np.ConnectionString, np.Schema ); // BUG } else { // use the default provider return GetProvider( null, null ); } } The marked line needs to pass a null as the initial parameter to call the correct overload. Here's the corrected source (I also changed the call to get the default provider): public static IGentleProvider GetProvider( Type type ) { NamespaceProvider np = NamespaceProviders.GetNamespaceProvider( type ); if( np != null ) { return GetProvider( null, np.ProviderName, np.ConnectionString, np.Schema ); } else { return GetDefaultProvider(); } } Bill Sorensen Objects and Infrastructure Integrated DNA Technologies |