NHibernate's ISession, scoped for a single WCF-call

23 Sep 2008 I am working at a project that uses the .NET 3.5 communication stack between client & server (WCF) and they have decided to be Domain driven. In this case NHibernate (NH) is the persistence framework of choice. The abstraction chosen for persistence are repositories (See Evans’ relevatory book “Domain-Driven Design:...

Spoiled with Dependency Injection

07 Sep 2008 The incredible truth is that there are constantly synchronicities. While I was quickly jotting down the contenders for the Dependency Injection throne in .NET, others make full-blown, multi-part comparisons. Need an example? Go here: * [Comparing .NET DI (IoC) Frameworks, Part 1](http://blog.ashmind.com/index.php/2008/08/19/comparing-net-di-ioc-frameworks-part-1/) * [Comparing .NET DI (IoC) Frameworks, Part 2](http://blog.ashmind.com/index.php/2008/09/08/comparing-net-di-ioc-frameworks-part-2/)...

Some nice scale videos

18 Aug 2008 Powers of ten are something that are quite fun to visualize. Here is an age-old but nonetheless entertaining video throughout the scales of the universe: </param></param></embed> I just love the colourful depiction of Hadrons. All those funny gluons were already known back in 1977! This one blows your mind, comparing...

Don't be afraid of your csproj-Files (III): We have a condition

16 Aug 2008 Project references Consider the following situation: You want to test an application that uses plugins. The dependencies look as such: ` RF.CsProjTests.Console RF.CsProjTests.PluginA RF.CsProjTests.PluginB ` Maybe you want to be able to test Console either with A or B. You can do that with Visual Studio’s configuration manager. Here you...

Don't be afraid of your csproj-Files (II): Add Your own Targets

01 Aug 2008 In my first post on csproj-fun I had an example where after every build, the resulting assemblies lying in e.g. bin/debug would be merged into one and copied out to some other place. Maybe you do not want this every time you rebuild your project, but you’d rather want to...