Chili.Opf3 Send comments on this topic.
Create(ObjectContext,IDataReader) Method
See Also 
Chili.Opf3 Namespace > Generic ObjectReader Class > Create Method : Create(ObjectContext,IDataReader) Method




context
The ObjectContext associated with the reader.
reader
The internal data reader returned by the underlying ADO.NET storage.
Creates a new instance of the ObjectReader Class. This instance is usually required when implementing own storages.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function Create( _
   ByVal context As ObjectContext, _
   ByVal reader As IDataReader _
) As ObjectReader(Of T)
Visual Basic (Usage)Copy Code
Dim context As ObjectContext
Dim reader As IDataReader
Dim value As ObjectReader(Of T)
 
value = ObjectReader(Of T).Create(context, reader)
C# 
public static ObjectReader<T> Create( 
   ObjectContext context,
   IDataReader reader
)
Managed Extensions for C++ 
public: static ObjectReader<T>* Create( 
   ObjectContext* context,
   IDataReader reader
) 
C++/CLI 
public:
static ObjectReader<T>^ Create( 
   ObjectContext^ context,
   IDataReader reader
) 

Parameters

context
The ObjectContext associated with the reader.
reader
The internal data reader returned by the underlying ADO.NET storage.

Requirements

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

See Also