Checking for an empty association

3
Hi, does anybody know how to check to see if an association is empty using an xpath constriant? so retrieve a list of objects where there is no link to an association I am currently trying the below but it gives an error: ExampleModule.Entity1_Entity2 = empty
asked
3 answers
8

E.g.

//System.User

[not(System.UserRoles/System.UserRole)]

 

answered
4

Try:

not(Entity1_Entity2)

 

Hope this helps!

answered
2

Thanks both! this worked great

answered