I can't seem to get these two to work together. I can skip and I can take, but I can't skip and take.
Limit clause
Using take
"limit 2"
Using skip
"limit 2,18446744073709551615"
Using skip and take
"limit 2"
Code: Select all
[Test]
public void AnotherTest()
{
using (ConsignmentModuleEntities context = new ConsignmentModuleEntities(ConfigurationManager.ConnectionStrings["ConsignmentContext"].ConnectionString))
{
IQueryable query = context.Consignors.OrderBy(c => c.ConsignorId).Skip(2).Take(2).Select(c => c);
foreach (Consignors o in query)
{
Debug.WriteLine(o.Descriptor);
}
}
}
Regards,
Pleb