I see in this question people saying using greater than or less than on a Guid
field is a bad idea. I have a specific reason for wanting to do this though. I have a lot of data I want to pull from a web service, data that is essentially grouped by a Guid for several records. I'd like to be able to Get one Guid worth of data, then make another call for the next, etc. Seeing as how I can order by a Guid, I don't see why I shouldn't be able to do a greater than. I'd like to be able to Order on the Guid, grab the first, then pass that Guid back into my web service, do the same order by, and then select the first record that's 'greater than' the last guid.
I don't want to use a sequence number because it's possible someone would insert a record while I'm in the middle of doing this, and I don't want to get a duplicate record. My alternative is to use another one of my fields to do a greater than on.. but I know for a fact that the Guid field will not be changing. Is there a way to do this? Or am I just going about the problem wrong.
This is my code
NextAgent = SHEntity.qry_UnreleasedSearches.Where(w => w.AgentGUID > PreviousAgentGuid).OrderBy(o => o.AgentGUID)
Which just gives me a delegate does not take one argument
error.