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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -