Export (0) Print
Expand All

DataContext.Translate<TResult> Method (DbDataReader)

Converts an existing DbDataReader to objects.

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

public IEnumerable<TResult> Translate<TResult>(
	DbDataReader reader
)

Type Parameters

TResult

The type of the IEnumerable<T> to be returned.

Parameters

reader
Type: System.Data.Common.DbDataReader

The IDataReader to be converted.

Return Value

Type: System.Collections.Generic.IEnumerable<TResult>
A collection of objects returned by the conversion.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft