Checking for an empty association

0
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
3

Try:

not(Entity1_Entity2)

 

Hope this helps!

answered
3

E.g.

//System.User

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

 

answered
1

Thanks both! this worked great

answered