c# - Envers NHibernate - Create alias in query -



c# - Envers NHibernate - Create alias in query -

is there way create alias envers nhibernate similar ones can old school nhibernate expression?

i able like:

reader.add(auditentity.property("dog.name").eq("fido"));

where classic nhibernate expressions like:

session.createcriteria(typeof(dogowner)) .createalias("dog", "dog") .add(expression.eqproperty("dog.name", "fido") )

you can't today.

from docs

"the main limitation of current queries implementation cannot traverse relations. can specify constraints on ids of related entities, , on "owning" side of relation. changed in future releases."

you need bring together "manually" using multipe queries.

c# nhibernate alias criteria nhibernate-envers

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -