I guess you mean if querying onetomany associations is possible? No,
currently it is not, only “traverserelation” using inner join is possible.
Please report an issue on github.
(Depending on what you want to do and how your model look like, a possible
workaround might be to query the child and “traverse” to the parent instead)
On Tuesday, May 5, 2020 at 4:19:34 PM UTC+2, Kun Li wrote:
>
> Hi guys,
>
> Can I ask if the latest version of NHibernate.Enver support oneToMany
> associations?
> What I want to do is like this.
>
> Instance has many nodes.
>
> // Get historical state of entity instances
> var query = Session.Auditer().CreateQuery()
> .ForEntitiesAtRevision<Instance>(revisionId)
> .Add(AuditEntity.RelatedId("Template").Eq(id))
> .TraverseRelation("Nodes", JoinType.LeftOuterJoin);
>
> Could somone shed some lights on me about this query?
>
> Thanks in advance.
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nhusers/3ff44fc2-587d-4530-8818-5a96fbb7e35f%40googlegroups.com.