I did a simple implementation of the Specification Pattern using NHibernate 
QueryOver, which can be used a Lambda, a Criterion or a QueryOver to 
specify the constraints for entities in the domain. 

Here have some examples used within unit test.

Examples:

https://queryoverspec.codeplex.com/

http://queryoverspec.codeplex.com/SourceControl/changeset/view/e616cf765b09#Test%2fTests%2fTestSpec.cs

Nuget
http://nuget.org/packages/Naskar.QueryOverSpec

Let me know the issues that you found.
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/u2mnQJIhXbcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to