Knight Data Access Layer
Load a Page of Records
Basic Tasks C# > Loading Data > Load a Page of Records

Load a page of records.  The firs pae starts at one.

//Get the current instance of the helper

IDataHelper db = DataHelper.SessionFactory();

 

List<Person> list = db.LoadPage<Person>("WHERE LastName <> @LastName",

new Dictionary<string, object>

{

{ "@LastName", "Organa" }

},

"ORDER BY FirstName",

2,

2);