Tag Archives: nhibernate

NHibernate query optimising with HQL expression IN

A note for me to remember. I have been doing some optimisation of queries done by NHibernate HQL. To optimise I have rewritten some of them to use the HQL IN expression. Point: important to check the collection parameter, if … Continue reading

Posted in Development, Personal | Tagged | Leave a comment

NHibernate dirty problem, weird updates in NHprof

Upgrading to NH3 from NH2.1.2 We have recently update to NHibernate 3 in one of our projects. While testing I was suddenly seeing some weird UPDATE statements in NHprof. It seemed like the NHibernate IsDirty detection had changed. After some … Continue reading

Posted in Development | Tagged , , , , | 2 Comments

NHibernate CompositeId and GetHashCode SELECT N+1 problem

I was looking in my NHProf log and got a lot of SELECT request. To many and I thought I was having a SELECT N+1 problem. Using the “Stack Trace” in NHprof I identified a call being made to GetHashCode() … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

NHibernate Membase caching provider

Enyim has made a nice client library for both Memcache and Membase. Membase can be used as a free distributed caching platform. With the new provider model introduced in ASP.NET 4, it is now possible to write providers for output … Continue reading

Posted in Development | Tagged , , , , | 19 Comments

Must read and references

Read: http://davybrion.com/blog/2009/12/using-nhibernate-in-your-service-layer/ Reference: http://west-wind.com/weblog/posts/132081.aspx

Posted in Personal | Tagged , , , , | Leave a comment

NHibernate Fluent Criteria

– Updated on the 2. January 2010 I have been using NHibernate for some time now, and I am very satisfied with the functionality it provides. However, I do really not like “magic strings” as these makes the code resistent … Continue reading

Posted in Development, Software | Tagged , , , | Leave a comment

Using Multiple Configuration files for NHibernate (HybridSessionBuilder)

  I have been using Castle Windsor and NHibernate for some months now, so I am a bit new and still learning. But then again, it is learning developers like me, that asks all the questions. This post is also … Continue reading

Posted in Development | Tagged , , | Leave a comment

Multiple Configurations for NHibernate using HybridSessionBuilder

  I have been using Castle Windsor and NHibernate for some months now, so I am a bit new and still learning. But then again, it is learning developers like me, that asks all the questions. This post is also … Continue reading

Posted in Development | Tagged , | Leave a comment

Multiple Configurations for NHibernate (HybridSessionBuilder)

  I have been using Castle Windsor and NHibernate for some months now, so I am a bit new and still learning. But then again, it is learning developers like me, that asks all the questions. This post is also … Continue reading

Posted in Development | Tagged , , , | 4 Comments

NHibernate – many-to-many relationship with data attached

I just found a good blog post about the may-to-many relationship in NHibernate. The configuration sis done in Fluent NHibernate. http://codebetter.com/blogs/kyle.baley/archive/2008/12/24/many-to-many-relationships-with-data-attached-in-nhibernate.aspx

Posted in Development | Tagged , , , | Leave a comment