Assume I have 2 entities: Ent
and SubEnt
with N:1 relationship. So, there are navigation properties SubEnt.Ents
and Ent.SubEnt
. Also, I have some ObjectQuery defined:
ObjectQuery<SubEnt> se;
How can I create ESQL query that selects all entities from Ent
that have Ent.SubEnt
from se
?
Something like that:
SELECT VALUE it FROM Ent WHERE Ent.SubEnt IN @p
Where @p == se. It looks like a nested query. But this syntax is not correct because "Only scalar types are supported".