Regular |
|
Joined: Thu May 12, 2005 10:12 am Posts: 71 Location: Buenos Aires, Argentina
|
This question is related to a previous posting. I'm trying to do a search criteria using nh "a la" Domain Driven Design. I asked this question before but I'm still not sure how to implement it.
Can anyone point mw to an example on how to build a Specification object (and its corresponding Repository) and how to use it with nhibernate?
Looking at DDD book it showed that the specification object uses SQL to do a query. This SQL is wrapped in the Specification object. Using NH, SQL could would replaced by HQL, but I still dont like this aprroach because it makes NH creep into my domain.
Can someone show me the light on how to do this "right" ?
|
|