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




context
ObjectContext connected with the ObjectReader.
query
IQuery that is compiled and executed on the storage.
Executes the IQuery and returns an ObjectReader with the results of the query.

Syntax

Visual Basic (Declaration) 
Overrides Public Function ExecuteReader(Of T)( _
   ByVal context As ObjectContext, _
   ByVal query As IQuery _
) As ObjectReader(Of T)
Visual Basic (Usage)Copy Code
Dim instance As SqlStorageBase
Dim context As ObjectContext
Dim query As IQuery
Dim value As ObjectReader(Of T)
 
value = instance.ExecuteReader(Of T)(context, query)
C# 
public override ObjectReader<T> ExecuteReader<T>( 
   ObjectContext context,
   IQuery query
)
Managed Extensions for C++ 
public: ObjectReader<T>* ExecuteReader<T>( 
   ObjectContext* context,
   IQuery* query
) override 
C++/CLI 
public:
ObjectReader<T>^ ExecuteReadergeneric<typename T>
( 
   ObjectContext^ context,
   IQuery^ query
) override 

Parameters

context
ObjectContext connected with the ObjectReader.
query
IQuery that is compiled and executed on the storage.

Type Parameters

T

Exceptions

ExceptionDescription
ArgumentNullExceptionQuery is null or context is null.

Requirements

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

See Also