Browse by Tags

All Tags » NHibernate (RSS)
About over a year+ we had a little application that was leveraging NHibernate for a simple domain. Along all the requirements, one was to generate a pre-defined report with a few simple filters on it. Initial thought was to leverage the same domain we...
Posted by Sean Feldman | with no comments
Filed under:
Each time we use NHibernate, we have to share production and semi-production code for NHibernate SessionFactory . Production code is the portion that is actually responsible to generate the SessionFactory on startup. Semi-production code, is the code...
Posted by Sean Feldman | 2 comment(s)
Filed under:
Recently I had to update our domain model and it required some NHibernate profiling. I have installed trial version of NHibernate Profiler , and it rocked. The fact that it was not only able to show what was going on, but also give suggestions how to...
Posted by Sean Feldman | with no comments
Filed under:
Criteria involving multiple ORs and ANDs can quickly become ugly. David   showed how some of our code became more readable by using a feature to join multiple ICriterion- s instead of using Restrictions class (as well as how to quickly leverage expressions...
Posted by Sean Feldman | with no comments
Filed under:
Anyone who worked with NHibernate knows that SessionFactory is an expensive object, that better to be constructed once, cached and re-used to build lightweight and disposable NHibernate sessions. It’s always shows up as a warning in books ( NHibernate...
Posted by Sean Feldman | with no comments
Filed under:
Base classes are a touchy subject . Some might advocate for it, some will against it. Personally, I am not a big fan of base classes. There are several reasons for that, but most important to me, is the baggage you get to carry around once extend a base...
Posted by Sean Feldman | 1 comment(s)
Filed under: ,
A good identifier for an entity is considered to be a number. A unique identifier for an entity, such as identifier that can be synchronized across multiple databases, is considered to be GUID. The only issue with a GUID is that it's generated on the...
Posted by Sean Feldman | with no comments
Filed under:
More Posts