1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Summary description for RemClass
/// </summary>
public class RemClass
{
private RemarquesDataClassesDataContext Context
{
get;
set;
}
public RemClass()
{
Context = new RemarquesDataClassesDataContext();
}
public int GetREMCount(int maximumRows, int startPageIndex, int startRowIndex)
{
return Context.REMARQUES_VEWs.Count();
}
public IQueryable<REMARQUES_VEW> GetRems(int maximumRows, int startPageIndex, int startRowIndex)
{
var query = Context.REMARQUES_VEWs.Where( Skip(startRowIndex).Take(maximumRows);
return query;
}
} |
Partager