This post is an recognition that we had lost the fight with Identity's fans. As you probably know I don’t like Identity , but as a NHibernate-developer I can’t ignore ours users requests. This is the complete list of POID ( P ersistent O bject ID entifier) generators provided by NHibernate2...
How many times you heard us saying “don’t use identity POID generator!” ? To understand it better you must move your mind to an application, or a use-case , where the pattern open-session-in-view (aka session-per-request) is not applicable. The Unit of Work The Unit of Work (UoW) is...
In this post I'll describe a possible base class for domain entities which implements a surrogate key as identity field and provides equality and hash code. Introduction Martin Fowler writes in his PoEAA book: " The identity field saves a database ID field in an object to maintain identity between...