IRetrievalQueryExecute Method  | 
 
            Executes the query contained by the IQuery instance. The connection has to be opened before calling Execute().
            
 
    Namespace: 
   SD.LLBLGen.Pro.ORMSupportClasses
    Assembly:
   SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
SyntaxDbDataReader Execute(
	CommandBehavior behavior
)
Function Execute ( 
	behavior As CommandBehavior
) As DbDataReader
Parameters
- behavior
 - Type: System.DataCommandBehavior
The behavior setting to pass to the ExecuteReader method. 
Return Value
Type: 
DbDataReaderAn open, ready to use IDataReader instance
Exceptions| Exception | Condition | 
|---|
| InvalidOperationException | When there is no command object inside the query object, 
            or no connection object inside the query object or the connection is closed. | 
RemarksAdvances the returned datareader to the right resultset described by ResultsetNumber, if possible. If there are less 
            resultsets than ResultsetNumber describes, the last resultset found is returned
See Also