IDataAccessAdapter.FetchDataReader Method (IEntityFields2, IRelationPredicateBucket, CommandBehavior, Int32, Boolean) |
Creates a new Retrieval query from the elements passed in and executes that retrievalquery to return an open, ready to use IDataReader.
The datareader's command behavior is set to the readerBehavior passed in. If a transaction is in progress, the command is wired to the transaction.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
SyntaxIDataReader FetchDataReader(
IEntityFields2 fields,
IRelationPredicateBucket filter,
CommandBehavior readerBehavior,
int maxNumberOfItemsToReturn,
bool allowDuplicates
)
Function FetchDataReader (
fields As IEntityFields2,
filter As IRelationPredicateBucket,
readerBehavior As CommandBehavior,
maxNumberOfItemsToReturn As Integer,
allowDuplicates As Boolean
) As IDataReader
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2
The fields to use to build the query. - filter
- Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket
The filter. - readerBehavior
- Type: System.Data.CommandBehavior
The reader behavior to set. - maxNumberOfItemsToReturn
- Type: System.Int32
The max number of items to return. Specify 0 to return all elements - allowDuplicates
- Type: System.Boolean
If set to true, allow duplicates in the resultset, otherwise it will emit DISTINCT into the query (if possible).
Return Value
Type:
IDataReaderOpen, ready to use IDataReader
RemarksAdvanced functionality: be aware that the datareader returned is open, and the dataaccessadapter's connection is also open
See Also