Knight Data Access Layer
Load a Page of Records VB.NET
Basic Tasks VB.NET > Loading Data > Load a Page of Records VB.NET

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

'Get the current instance of the helper

Dim db As IDataHelper = DataHelper.SessionFactory()

  

Dim parms as Dictionary(Of String, Object)

parms.Add("@LastName", "Organa");

Dim list As List(Of Person) = db.LoadPage(Of Person)("WHERE LastName <> @LastName", parms, "ORDER BY FirstName", 2, 2)