T
Chili.Opf3 Send comments on this topic.
Generic CreateObjectReader Method
See Also 
Chili.Opf3.Storages Namespace > StorageBase Class : Generic CreateObjectReader Method




context
An instance of the ObjectContext that is passed to the storage.
innerReader
The IDataReader returned by the storage (after executing the command on the storage).
Creates a new instance of the ObjectReader Class.

Syntax

Visual Basic (Declaration) 
Protected Function CreateObjectReader(Of T)( _
   ByVal context As ObjectContext, _
   ByVal innerReader As IDataReader _
) As ObjectReader(Of T)
Visual Basic (Usage)Copy Code
Dim instance As StorageBase
Dim context As ObjectContext
Dim innerReader As IDataReader
Dim value As ObjectReader(Of T)
 
value = instance.CreateObjectReader(Of T)(context, innerReader)
C# 
protected ObjectReader<T> CreateObjectReader<T>( 
   ObjectContext context,
   IDataReader innerReader
)
Managed Extensions for C++ 
protected: ObjectReader<T>* CreateObjectReader<T>( 
   ObjectContext* context,
   IDataReader innerReader
) 
C++/CLI 
protected:
ObjectReader<T>^ CreateObjectReadergeneric<typename T>
( 
   ObjectContext^ context,
   IDataReader innerReader
) 

Parameters

context
An instance of the ObjectContext that is passed to the storage.
innerReader
The IDataReader returned by the storage (after executing the command on the storage).

Type Parameters

T

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also