Generic version of FillCollection fills a List custom business object of a specified type from the supplied DataReader

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static List<T> FillCollection<T>(
	IDataReader dr,
	ref int totalRecords
)
Visual Basic
Public Shared Function FillCollection(Of T) ( 
	dr As IDataReader,
	ByRef totalRecords As Integer
) As List(Of T)

Parameters

dr
Type: System.Data..::..IDataReader
The IDataReader to use to fill the object
totalRecords
Type: System..::..Int32%
paramtotalRecordsM:DotNetNuke.Common.Utilities.CBO.FillCollection``1(System.Data.IDataReader,System.Int32@)

Type Parameters

T
The type of the business object

Return Value

A List of custom business objects

Remarks