Click or drag to resize

DataAccessAdapterCore.FetchTypedView Method (IEntityFields2, DataTable, IRelationPredicateBucket, Int32, ISortExpression, Boolean, IGroupByCollection, Int32, Int32)

Fetches the Typed View fields passed in fieldCollectionToFetch from the persistent storage using the filter information stored in filterBucket into the DataTable object passed in. Use this routine to fill a TypedView object.

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
public void FetchTypedView(
	IEntityFields2 fieldCollectionToFetch,
	DataTable dataTableToFill,
	IRelationPredicateBucket filterBucket,
	int maxNumberOfItemsToReturn,
	ISortExpression sortClauses,
	bool allowDuplicates,
	IGroupByCollection groupByClause,
	int pageNumber,
	int pageSize
)

Parameters

fieldCollectionToFetch
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields2
IEntityField2 collection which contains the fields of the typed view to fetch into the datatable. Use the Typed View's method GetFieldsInfo() to get this IEntityField2 field collection
dataTableToFill
Type: System.Data.DataTable
The datatable object to fill with the data for the fields in fieldCollectionToFetch
filterBucket
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket
filter information (relations and predicate expressions) for retrieving the data.
maxNumberOfItemsToReturn
Type: System.Int32
The maximum amount of rows to return. If 0, all rows matching the filter are returned
sortClauses
Type: SD.LLBLGen.Pro.ORMSupportClasses.ISortExpression
SortClause expression which is applied to the query executed, sorting the fetch result.
allowDuplicates
Type: System.Boolean
When true, it will not filter out duplicate rows, otherwise it will DISTINCT duplicate rows.
groupByClause
Type: SD.LLBLGen.Pro.ORMSupportClasses.IGroupByCollection
GroupByCollection with fields to group by on
pageNumber
Type: System.Int32
the page number to retrieve. First page is 1. When set to 0, no paging logic is applied
pageSize
Type: System.Int32
the size of the page. When set to 0, no paging logic is applied

Implements

IDataAccessAdapter.FetchTypedView(IEntityFields2, DataTable, IRelationPredicateBucket, Int32, ISortExpression, Boolean, IGroupByCollection, Int32, Int32)
Remarks
To fill a DataTable with entity rows, you could use this method as well, by passing the Fields collection of an entity of the same type as the one you want to fetch as fieldCollectionToFetch.
See Also