Browse by Tags
All Tags »
NHibernate (
RSS)
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...
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...
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...
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...
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...
More Posts