Tag Archives: nh

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

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

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

Ayende explains cascading with NHibernate

To continue my little "post with good links"… here is a good article by Ayende, explaining cascadin with NHibernate: http://ayende.com/Blog/archive/2006/12/02/NHibernateCascadesTheDifferentBetweenAllAlldeleteorphansAndSaveupdate.aspx Here is the basics: Here is what each cascade option means: none – do not do any cascades, let the … Continue reading

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

Learning NHibernate

NHibernate is a port of Hibernate Core for Java to the .NET Framework. It handles persisting plain .NET objects to and from an underlying relational database. Given an XML description of your entities and relationships, NHibernate automatically generates SQL for … Continue reading

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