Knight Data Access Layer
Mapping Stored Procedures VB.NET
Basic Tasks VB.NET > Mapping > Mapping Stored Procedures VB.NET

To automatically results from a stored procedure, simply create a class to place the results.  Alternatively a dictionary can be returned.

 

Dim db As IDataHelper = DataHelper.SessionFactory()

Dim records As List(Of Person) = db.LoadFromSproc(Of Person)("TopTenPeople")