You don’t mess with Unity’s policies

Recently I ran into a problem. Quite well designed system degraded in terms of performance after a few commits. The whole architecture is wired with an infrastructure library written with unity container as a base for dependency injection. One of its features is a simple adding proxies, for instance adding some information to an exception's … Continue reading You don’t mess with Unity’s policies

NHibernating with interfaces as entities, pt. 2

The solution to the question, what can go wrong with NHibernate, when you use interfaces as your entities mapped with NH is... naming. When you try to save a transient object, to make it persistent with NH, you call ISession.Save(object) method. If you drilled down its implementation you'd see that it fires NH's event SaveOrUpdateEvent … Continue reading NHibernating with interfaces as entities, pt. 2