Implementing NHibernate DetachedCriteria-like
-
06-09-2019 - |
Question
I would like to write something like DetachedCriteria but I don't want to use the ISession or Nhibernate at all...
All I need is the implementations for ICriterion and Expression.
after writing such Criteria -> I would like to generate an Xml Query or AD-Query or maybe even Query on collection (something like the Linq2Objects)
Do you have such sample? Someone wrote such code?
Solution
Ayende has an implementation for this.
http://ayende.com/Blog/archive/2006/12/07/ComplexSearchingQueryingWithNHibernate.aspx
OTHER TIPS
Why don't you look in source code for NHibernate for implementation of ICriterion and Expression. It is after all an open source project.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow