DataContext.Translate(Of TResult) Method (DbDataReader)

 

Converts an existing DbDataReader to objects.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Public Function Translate(Of TResult) (
	reader As DbDataReader
) As IEnumerable(Of TResult)

Parameters

reader
Type: System.Data.Common.DbDataReader

The IDataReader to be converted.

Return Value

Type: System.Collections.Generic.IEnumerable(Of TResult)

A collection of objects returned by the conversion.

Type Parameters

TResult

The type of the IEnumerable(Of T) to be returned.

.NET Framework
Available since 3.5
Return to top
Show: