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.

Posted on Tuesday, April 21, 2009 8:00 PM | Filed Under [ NCommon ]


Comments

Gravatar
# @Steve: Yes. See this post: http://www.codeinsani...
Posted by Ritesh Rao
on 5/19/2009 3:20 PM
@Steve:
Yes. See this post: www.codeinsanity.com/...
Gravatar
# Are you on google code now ? I'm just wanting to...
Posted by Steve Gentile
on 5/19/2009 3:15 PM
Are you on google code now ?

I'm just wanting to find the most uptodate source.

Thanks!
Gravatar
# any reason why you migrate it to google code?
Posted by Anonymous
on 5/9/2009 9:20 AM
any reason why you migrate it to google code?
Gravatar
# Did some more reading on fetching strategies and r...
Posted by JT
on 5/6/2009 10:42 PM
Did some more reading on fetching strategies and revisited one of your older entries. Now I have a deeper understanding instead of just trying to base it off of the code examples. I really like how you have implemented it in NCommon.

Thanks again for your help!
Gravatar
# re: NCommon Update
Posted by uggs outlet
on 11/11/2011 3:45 AM
nice post s
Post Comment
Title *
Name *
Email
Url
Comment *  
Please add 1 and 7 and type the answer here: