sfeldman.NET

.NET, code, personal thoughts

Browse by Tags

All Tags » NHibernate (RSS)
NHibernate Profiler
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:

Disjunction and Conjunction in NHibernate
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:

NHibernate SessionFactory Lesson
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:

“Light Weight” Base Classes
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: ,

NHibernate GUID Alternative
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