Castle Automatic Transaction Management

This is a short post on how to set up Castle Automatic Transactions. Many people do not see transactions being implemented as a cross cutting concern a good thing mostly because having to structure your classes around aspects could be considered a bad thing. I am privy to using the AOP method because it facilitates better unit testing and results in an overall tidy solution. For example, do we want to mock the ITransactionManager every time we want to unit test a service method? Anyway here it is, you decide ...


http://fir3pho3nixx.blogspot.com/2011/01/this-is-short-post-on-how-to-set-up.html

posted @ 2011-08-15 20:31  永不言败  阅读(226)  评论(0编辑  收藏  举报