Just a quick note… After testing NCommon 1.1 for a couple of weeks I’ve made a beta build available on github. You can download versions for .net 3.5 and 4.0 from here.

Over the next couple of weeks I’ll be shifting focus on providing comprehensive documentation and reference samples.

Posted on Sunday, May 02, 2010 11:30 PM |


Comments

Gravatar
# Your Sample application wont work in MVC3 as the f...
Posted by kotuadam
on 11/24/2010 1:24 PM
Your Sample application wont work in MVC3 as the filter attribute architecture is changes to statefullness.
The fix for that is to instantiate the UnitOfwork in the constructor and pass it between actionexecuting and resultexecuting using filtercotnext.HttpContext.Items.

public UnitOfWorkAttribute() { _unitOfWork = new UnitOfWorkScope(_transactionMode); public override void OnActionExecuting(ActionExecutingContext filterContext) { //Starts a unit of work when the action starts executing. //_unitOfWork = new UnitOfWorkScope(_transactionMode); if (!filterContext.HttpContext.Items.Contains(key) { filterContext.HttpContext.Items[key] = _unitOfWork; } } public override void OnResultExecuted(ResultExecutedContext filterContext) { //Commits the unit of work if the filter scope is Result and no errors have occured. if (_filterScope != FilterScope.Result) return; if (_unitOfWork == null) _unitOfWork = (UnitOfWorkScope)filterContext.HttpContext.Items[key]; _unitOfWork.Commit(); ReleaseUnitOfWork(); } }
Gravatar
# Hi Ritesh Just stumbled across your NCommon libra...
Posted by stooboo
on 8/10/2010 7:49 PM
Hi Ritesh
Just stumbled across your NCommon library while looking up loads (and loads..) of repository implementations ...you ROCK ! ;-)

thankyou
Stu
Gravatar
# As someone who has now worked quite a bit with EF ...
Posted by Sam I Am
on 5/15/2010 12:48 PM
As someone who has now worked quite a bit with EF and NHibernate, would be interesting to so a comparitive post on the two orms. Cheers, Samuel
Gravatar
# Great! Ritesh can you plan a new nosql dataprovi...
Posted by Luca Milan
on 5/10/2010 11:21 AM
Great!

Ritesh can you plan a new nosql dataprovider like CouchDB for NCommon?
Gravatar
# re: NCommon 1.1 Beta on github
Posted by Novelty Pens
on 2/5/2012 5:47 AM
Looking through some of your posts, very interesting. But nothing new in quite a while?
Gravatar
# re: NCommon 1.1 Beta on github
Posted by Mulberry bags
on 2/27/2012 3:09 AM
good post,
Gravatar
# re: NCommon 1.1 Beta on github
on 3/5/2012 12:48 AM
You had some nice points here. I done a research on the topic and got most peoples will agree with you
Gravatar
# re: NCommon 1.1 Beta on github
on 3/8/2012 9:28 PM
thanks for sharing such informative and fantastic post..pandora jewelry pandora sale uk thomas sabo barcklets shop buy cheap online oakley sunglasses charms
Post Comment
Title *
Name *
Email
Url
Comment *  
Please add 3 and 6 and type the answer here: