It’s been a while since my last update on NCommon, and a few features and some bug fixes have been checked in. A lot of new functionality and bug fixes were added with the help of some good feedback from the CodePlex discussions forum.
The first change is that the GetCurrentUnitOfWork method in the RepositoryBase class has been made virtual. This is done to allow overriding the default behavior in your implementation of repository that sub-classes RepositoryBase. The reason behind this change is to make RepositoryBase more adaptable to scenarios where a the default behavior needs to be overriden.
An AutoComplete mode has been added to UnitOfWork which allows the unit of work to auto complete instead of rolling back when being disposed. This functionality was added with the help from Pablo Ruiz, who originally thought of adding this to NCommon. Thanks Pablo. [http://ncommon.codeplex.com/Thread/View.aspx?ThreadId=52096]
A new method, called Cached, has been added to the IRepository interface. The intent of this method is to notify the underlying provider that results of this query should be cached. This is currently only useful for NHibernate where Query caching can be done.
As a side note, this will be the last source update of NCommon on CodePlex.