mehfuzh/LinqExtender — Issue #1: Skip and Take Sticking
Author: spardo
Created: 2011-11-03 16:58:08+00:00
State: open

The skip and take methods are sticking between two subsequent calls.

Below is the use case:

1. First query is performing a skip and take. Example:
var list1 = (from c1 in context1 select c1).Skip(10).Take(10).ToArray();

2. Second query is not performing a skip and take. Example:
var list2 = (from c2 in context2 select c2).ToArray();

Should occur:

1. First query should have two MethodCallExpressions passed into the Execute method.
2. Second query should no MethodCallExpressions passed into the Execute method.

Actual Results:

1. First query has two MethodCallExpressions being passed in the Execute method in the IQueryContext implementation.
2. Second query has the same two MethodCallExpressions being passed in the Execute method in the IQueryContext implementation.

Unfortunately this is not what I was expecting. I think it might be a bug. If not, how do I handle such a scenario.