Knight Data Access Layer
Load Lookups VB.NET
Basic Tasks VB.NET > Loading Data > Load Lookups VB.NET

Load the primary key and the first string column for usage in a drop down.

 

'Get the current instance of the helper

Dim db As IDataHelper = DataHelper.SessionFactory()

Dim records As Dictionary(Of String, Object) = db.LoadLookup(GetType(States))