Selasa, 22 Maret 2011
Using Query Classes With NHibernate
Even when using an ORM, such as NHibernate, the developer still has to decide how to perform queries. The simplest strategy is to get access to an ISession and directly perform a query whenever you need data. The problem is that doing so spreads query logic throughout the entire application – a clear violation of the Single Responsibility Principle. A more advanced strategy is to use Eric Evan’s
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar