score:2

Accepted answer

The call to the ToString method is not supported inside linq queries. Try parsing the id to guid and do a simple equality like this:

return _client.CreateDocumentQuery<TEntity>(_selfLink).Where(u => u.Id == Guid.Parse(id)).AsEnumerable().FirstOrDefault();

Related Query

More Query from same tag