The title says a comparison of two IQueryables. If you want to actually do a comparison to determine if both IQueryables contain the same results in the same query ....
var aExceptB = objIQuerableA.Except(objIQuerableB);
var bExceptA = objIQuerableB.Except(objIQuerableA);
var symmetricDiff = aExceptB.Union(bExceptA);
bool areDifferent = symmetricDiff.Any();
source
share