nhibernate - DetachedCriteria with 3 OR conditions -


How can I get this query using different queries:

  MyTable Choose from * (conditionA = true) or (conditionB = true) or (conditionC = true) or (conditionD = true)  

You can use clutter class like this:

  isolated diplomacy. For & lt; MyTable & gt; (). Add (restriction .Decision). Add (restrictions. AEC (true "candyshad A")). Add (restrictions. AC ("conditionB", true)). Add (restriction. Ac ("conditionC", true)). Add (ban.ac ("condition", true)));  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -