Checking for an empty association

1
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
4

E.g.

//System.User

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

 

answered
3

Try:

not(Entity1_Entity2)

 

Hope this helps!

answered
2

Thanks both! this worked great

answered