Index: IBatisNet.DataMapper/ISqlMapper.cs =================================================================== --- IBatisNet.DataMapper/ISqlMapper.cs (revision 709676) +++ IBatisNet.DataMapper/ISqlMapper.cs (working copy) @@ -66,7 +66,7 @@ /// /// sqlMapper.SessionStore = new HybridWebThreadSessionStore( sqlMapper.Id ); /// - ISessionStore SessionStore { set; } + ISessionStore SessionStore { set; get; } /// /// Gets a value indicating whether this instance is session started. Index: IBatisNet.DataMapper/SqlMapper.cs =================================================================== --- IBatisNet.DataMapper/SqlMapper.cs (revision 709676) +++ IBatisNet.DataMapper/SqlMapper.cs (working copy) @@ -103,6 +103,7 @@ public ISessionStore SessionStore { set { _sessionStore = value; } + get { return _sessionStore; } } /// Index: IBatisNet.DataMapper/SqlMapSession.cs =================================================================== --- IBatisNet.DataMapper/SqlMapSession.cs (revision 709676) +++ IBatisNet.DataMapper/SqlMapSession.cs (working copy) @@ -547,6 +547,10 @@ { _sqlMapper.CloseConnection(); } + else + { + _sqlMapper.SessionStore.Dispose(); + } } else {