简体   繁体   中英

Implementing NHibernate DetachedCriteria-like

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?

Why don't you look in source code for NHibernate for implementation of ICriterion and Expression. It is after all an open source project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM