Knight Data Access Layer
Load Lookups
Basic Tasks C# > Loading Data > Load Lookups

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

 

//Get the current instance of the helper

IDataHelper db = DataHelper.SessionFactory();

 

Dictionary<string, object> records = db.LoadLookup(typeof(States));