TypedListBaseTFill Method (Int64, ISortExpression, Boolean, IPredicate, ITransaction, IGroupByCollection, Int32, Int32) |
Fills itself with data. it builds a dynamic query and loads itself with that query, using the specified filter
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax public virtual bool Fill(
long maxNumberOfItemsToReturn,
ISortExpression sortClauses,
bool allowDuplicates,
IPredicate selectFilter,
ITransaction transactionToUse,
IGroupByCollection groupByClause,
int pageNumber,
int pageSize
)
Public Overridable Function Fill (
maxNumberOfItemsToReturn As Long,
sortClauses As ISortExpression,
allowDuplicates As Boolean,
selectFilter As IPredicate,
transactionToUse As ITransaction,
groupByClause As IGroupByCollection,
pageNumber As Integer,
pageSize As Integer
) As Boolean
Parameters
- maxNumberOfItemsToReturn
- Type: SystemInt64
The maximum number of rows to return. specifying 0 means all rows are returned - sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
The order by specifications for the sorting of the resultset. When null is specified, no sorting is applied. - allowDuplicates
- Type: SystemBoolean
Flag to allow duplicate rows (true) or not (false) - selectFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Predicate which is used to filter the rows to insert in this Typed List instance - transactionToUse
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
The transaction object to use. Can be null. If specified, the connection object of the transaction is used to fill the TypedView, which avoids deadlocks on SqlServer. - groupByClause
- Type: SD.LLBLGen.Pro.ORMSupportClassesIGroupByCollection
GroupByCollection with fields to group by on. - pageNumber
- Type: SystemInt32
The page number to retrieve. - pageSize
- Type: SystemInt32
The page size of the page to retrieve.
Return Value
Type:
Booleantrue if fill succeeded, false otherwise
Implements
ITypedListLgpFill(Int64, ISortExpression, Boolean, IPredicate, ITransaction, IGroupByCollection, Int32, Int32)See Also