Click or drag to resize
DataAccessAdapterCoreFetchDataReader Method (IEntityFields2, IRelationPredicateBucket, CommandBehavior, Int32, ISortExpression, 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.0.0.0 (5.0.0)
Syntax
public IDataReader FetchDataReader(
	IEntityFields2 fields,
	IRelationPredicateBucket filter,
	CommandBehavior readerBehavior,
	int maxNumberOfItemsToReturn,
	ISortExpression sortClauses,
	bool allowDuplicates
)

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields2
The fields to use to build the query.
filter
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationPredicateBucket
The filter.
readerBehavior
Type: System.DataCommandBehavior
The reader behavior to set.
maxNumberOfItemsToReturn
Type: SystemInt32
The max number of items to return. Specify 0 to return all elements
sortClauses
Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
The sort clauses.
allowDuplicates
Type: SystemBoolean
If set to true, allow duplicates in the resultset, otherwise try to emit DISTINCT (if possible).

Return Value

Type: IDataReader
Open, ready to use IDataReader

Implements

IDataAccessAdapterFetchDataReader(IEntityFields2, IRelationPredicateBucket, CommandBehavior, Int32, ISortExpression, Boolean)
Remarks
Advanced functionality: be aware that the datareader returned is open, and the dataaccessadapter's connection is also open
See Also