nhibernate - How to translate a QueryOver to DetachedCriteria? -
i not wish know why it's better use queryover , it's newer.
how can translate following queyover detachedcriteria:
queryover<category>().where(x => x.properties.any(y => y.locales.any(l => l.value.name == "propname")));
i don't know if "any" extension method recognized nhibernate can understand i'm trying accomplish.
var subquery = detachedcriteria.for<category>() .createcriteria("properties") .createcriteria("locales") .add(expression.eq("name", "propname"));
Comments
Post a Comment