- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
public IQueryable<Log> Select(Context context)
{
// Return list of entities
return (from l in context.Logs select l);
}
/// <summary>
/// Fetch page from Log table
/// </summary>
/// <param name="nStartRowIndex">Starting index of rows to fetch</param>
/// <param name="nMaxRows">Max number of rows</param>
/// <returns>IEnumerable of Log</returns>
public List<Log> SelectPage(int nStartRowIndex, int nMaxRows,
string strProperty, string strKeyword,
string strSort, string strSortDirection,
out int nTotalCount)
{
using (Context context = new Context())
{
var q = Select(context).Take (1000);
}
}