File tree 1 file changed +7
-4
lines changed
src/NHibernate/Connection
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,20 @@ public virtual void CloseConnection(IDbConnection conn)
37
37
/// <exception cref="HibernateException">Thrown when a ConnectionString could not be found or the Driver Class could not be loaded.</exception>
38
38
public virtual void Configure ( IDictionary settings )
39
39
{
40
- log . Info ( "Configuring ConnectionProvider" ) ;
40
+ log . Info ( "Configuring ConnectionProvider" ) ;
41
41
42
42
// default the poolSize to 0 if no setting was made because most of the .net DataProvider
43
43
// do their own connection pooling. This would be useful to change to some higher number
44
44
// if the .net DataProvider did not provide their own connection pooling. I don't know of
45
45
// any instances of this yet.
46
- poolSize = PropertiesHelper . GetInt32 ( Cfg . Environment . PoolSize , settings , 0 ) ;
47
- log . Info ( "NHibernate connection pool size: " + poolSize ) ;
46
+ poolSize = PropertiesHelper . GetInt32 ( Cfg . Environment . PoolSize , settings , 0 ) ;
47
+ log . Info ( "NHibernate connection pool size: " + poolSize ) ;
48
48
49
49
connString = settings [ Cfg . Environment . ConnectionString ] as string ;
50
- if ( connString == null ) throw new HibernateException ( "Could not find connection string setting" ) ;
50
+ if ( connString == null )
51
+ {
52
+ throw new HibernateException ( "Could not find connection string setting" ) ;
53
+ }
51
54
52
55
ConfigureDriver ( settings ) ;
53
56
You can’t perform that action at this time.
0 commit comments