Archives for nHibernate
Hibernating Rhinos – nHibernate Profiler
1. To get started with this powerful profiler, simply install the NuGet package (look for nHibernate Profiler). it places all the required assemblies in your project AND…
nHibernate transactions and rollbacks
Introduction The same rollback considerations that apply to normal SQL transactions also apply to nHibernate transactions. Rollback Scenario Suppose you have two SQL Statements – the first one tries to…
Fluent nHibernate setting database transaction isolation level
Introduction Normally, if you do NOT specify the isolation level for an nHiberante transaction, it will remain undefined. This is bad for many reasons – the primary one being that…
Troubleshooting nHibernate Performance
Introduction nHibernate is still one of the most popular ORM layers in use today. It provides support for collections, advanced querying, caching, statement batching, automatic change tracking for entities and…
nHibernate–manual session flushing
An nHibernate session maintains all changes to the object model. At some point, it needs to synchronize these changes with the database. It can either do these constantly (as and…