This documentation is archived and is not being maintained.

ObjectMaterializer<TDataReader> Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Defines methods for dynamically materializing objects.


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

public abstract class ObjectMaterializer<TDataReader>
where TDataReader : DbDataReader

Type Parameters


The type of the data reader.

The ObjectMaterializer<TDataReader> type exposes the following members.

Public methodObjectMaterializer<TDataReader>Initializes a new instance of the ObjectMaterializer<TDataReader> class.

Public propertyCanDeferLoadWhen overridden in a derived class, gets a value that indicates whether deferred loading is enabled.

Public methodStatic memberConvert<TOutput>Changes the type of each element in a specified sequence.
Public methodStatic memberCreateGroup<TKey, TElement>Creates a group from a specified key and collection of values.
Public methodStatic memberCreateOrderedEnumerable<TElement>Creates an ordered sequence from a specified collection of values.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberErrorAssignmentToNullReturns an exception that indicates that a null value was tried to be assigned to a non-nullable value type.
Public methodExecuteSubQueryWhen overridden in a derived class, executes a query.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLinkSource<T>When overridden in a derived class, creates a new deferred source.
Public methodGetNestedLinkSource<T>When overridden in a derived class, creates a new deferred source.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInsertLookupWhen overridden in a derived class, inserts a value into a data structure.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodReadWhen overridden in a derived class, advances the reader to the next record.
Public methodSendEntityMaterializedWhen overridden in a derived class, invokes the method represented by OnLoadedMethod.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public fieldArgumentsCaptures internal state for the fast materializer.
Public fieldBufferReaderRepresents a reader that reads data rows in a forward-only manner.
Public fieldDataReaderRepresents a data reader.
Public fieldGlobalsCaptures internal state for the fast materializer.
Public fieldLocalsCaptures internal state for the fast materializer.
Public fieldOrdinalsRepresents column ordinals of a data reader.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.