Remembered a useful way to redirect assembly bindings to newer versions:
Here I redirect an old version of Castle.Core to a newer one. Hopefully I’ll remember this next time :)
For several of my projects I use a repository pattern for the data access layer which sits above Fluent NHibernate. Using generics I can then replicate the same features for all entity repositories.
An example of the base interface is shown below.
Then a base class to implement this interface - as follows:
Then say if I have an entity called 'Mountain' I would name a repository 'MountainRepository' which implements the interface IMountainRepository:
and concrete implementation:
So the repository classes are all simpler and I have still access to the 20 odd base methods which have all the basic NHibernate functionality required.