Skip to content

Commit c15ae00

Browse files
author
Mike Doerfler
committed
Minor formatting changes made while working on other code.
SVN: trunk@903
1 parent c3d41fd commit c15ae00

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/NHibernate/Connection/ConnectionProvider.cs

+7-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,20 @@ public virtual void CloseConnection(IDbConnection conn)
3737
/// <exception cref="HibernateException">Thrown when a ConnectionString could not be found or the Driver Class could not be loaded.</exception>
3838
public virtual void Configure(IDictionary settings)
3939
{
40-
log.Info("Configuring ConnectionProvider");
40+
log.Info( "Configuring ConnectionProvider" );
4141

4242
// default the poolSize to 0 if no setting was made because most of the .net DataProvider
4343
// do their own connection pooling. This would be useful to change to some higher number
4444
// if the .net DataProvider did not provide their own connection pooling. I don't know of
4545
// 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 );
4848

4949
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+
}
5154

5255
ConfigureDriver(settings);
5356

0 commit comments

Comments
 (0)