This documentation is archived and is not being maintained.
DataContext::Translate<TResult> Method (DbDataReader)
Visual Studio 2008
Converts an existing DbDataReader to objects.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
public: generic<typename TResult> IEnumerable<TResult>^ Translate( 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: