Click or drag to resize

IDataAccessAdapterFetchTypedList Method (ITypedListLgp2, IPredicateExpression, Int32, ISortExpression, Boolean, Int32, Int32)

Fetches the fields passed in fieldCollectionToFetch from the persistent storage using the relations and filter information stored in the passed in typed list. For TypedView filling, use the method FetchTypedView()

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
void FetchTypedList(
	ITypedListLgp2 typedListToFill,
	IPredicateExpression additionalFilter,
	int maxNumberOfItemsToReturn,
	ISortExpression sortClauses,
	bool allowDuplicates,
	int pageNumber,
	int pageSize
)

Parameters

typedListToFill
Type: SD.LLBLGen.Pro.ORMSupportClassesITypedListLgp2
Typed list to fill.
additionalFilter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicateExpression
An additional filter to use to filter the fetch of the typed list. If you need a more sophisticated filter approach, please use the overload which accepts an IRelationalPredicateBucket and add your filter to the bucket you receive when calling typedListToFill.GetRelationInfo().
maxNumberOfItemsToReturn
Type: SystemInt32
The maximum amount of rows to return. If 0, all rows matching the filter are returned
sortClauses
Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
SortClause expression which is applied to the query executed, sorting the fetch result.
allowDuplicates
Type: SystemBoolean
When true, it will not filter out duplicate rows, otherwise it will DISTINCT duplicate rows.
pageNumber
Type: SystemInt32
the page number to retrieve. First page is 1. When set to 0, no paging logic is applied
pageSize
Type: SystemInt32
the size of the page. When set to 0, no paging logic is applied
Remarks
Grabs the fields list and relations set from the typed list passed in.
See Also