mihies wrote:
Otis wrote:
Hmm. So specifying 'true' for negate on an empty range would mean all entities are returned?
It's an edge case which has a point. Changing it though will mean a behavior change. I don't expect a lot of people to report about this though, but just in case...
Anyway, just curious: why do you use the filter if the range is empty? Why not ignore it?
I don't know in advance the range. I have to create a list of IDs that match some criteria (I do a loop through all entities - can't do it using .Filter property). So, if none matches then I should display an empty view, where user can still add entities (through grid).
Or perhaps is there an other way to filter EntityView2<> using code?
Ah I see. I think we all got confused by the thing that 'no range' should mean NO entities matching the filter, I was locked into the thought: 'no range' means EVERYTHING matches, as there's nothing there to filter with. In the latter case, you can simply not using the filter, but in your case you have a range of id's you want to see, and an empty range should mean no entities to see, which isn't possible at the moment.
Removing the exception should fix it. I'll remove the exception.
(edit) Attached.