What's a good way to perform an Exists or Count on the client object model classes?
I have list with views. I want to check if a view already exists before creating it. Tried a couple of things, but the only thing which actually seems to work is loading the entire collection and using a foreach to check each views' title. I was hoping for a neater way using Linq for instance.
- Performing a Where on the ViewCollection and loading that with LoadQuery. But when you perform Count() on that collection, you get an error.
- performing a Load on the entire Views collection and querying that; again an error.
- performing a count and loading the result, seems to be unsupported