DaoBaseGetMultiAsDataTable Method (Int64, ISortExpression, IPredicate, IRelationCollection, ITransaction, Int32, Int32) |
Retrieves entities of the type this dao is for in a datatable which match the specified filter. It will always create a new connection to the database.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax public virtual DataTable GetMultiAsDataTable(
long maxNumberOfItemsToReturn,
ISortExpression sortClauses,
IPredicate selectFilter,
IRelationCollection relations,
ITransaction transactionToUse,
int pageNumber,
int pageSize
)
Public Overridable Function GetMultiAsDataTable (
maxNumberOfItemsToReturn As Long,
sortClauses As ISortExpression,
selectFilter As IPredicate,
relations As IRelationCollection,
transactionToUse As ITransaction,
pageNumber As Integer,
pageSize As Integer
) As DataTable
Parameters
- maxNumberOfItemsToReturn
- Type: SystemInt64
The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified. - sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
The order by specifications for the sorting of the resultset. When not specified, no sorting is applied. - selectFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to retrieve. - relations
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The set of relations to walk to construct to total query. - 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. - pageNumber
- Type: SystemInt32
The page number to retrieve. - pageSize
- Type: SystemInt32
The page size of the page to retrieve.
Return Value
Type:
DataTablea filled datatable if succeeded, false otherwise
Implements
IDaoGetMultiAsDataTable(Int64, ISortExpression, IPredicate, IRelationCollection, ITransaction, Int32, Int32)See Also