DaoBaseGetMultiAsDataTable Method (IEntityFields, DataTable, ISortExpression, IPredicate, IRelationCollection, Boolean, ITransaction) |
Retrieves rows in the datatable provided which match the specified filter, containing the fields specified. It will always create a new connection to the database.
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 bool GetMultiAsDataTable(
IEntityFields fieldsToReturn,
DataTable tableToFill,
ISortExpression sortClauses,
IPredicate selectFilter,
IRelationCollection relations,
bool allowDuplicates,
ITransaction transactionToUse
)
Public Function GetMultiAsDataTable (
fieldsToReturn As IEntityFields,
tableToFill As DataTable,
sortClauses As ISortExpression,
selectFilter As IPredicate,
relations As IRelationCollection,
allowDuplicates As Boolean,
transactionToUse As ITransaction
) As Boolean
Parameters
- fieldsToReturn
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFields
IEntityFields implementation which forms the definition of the resultset to return. - tableToFill
- Type: System.DataDataTable
The datatable to fill with the rows retrieved - sortClauses
- Type: SD.LLBLGen.Pro.ORMSupportClassesISortExpression
The order by specifications for the sorting of the resultset. If null is 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. - allowDuplicates
- Type: SystemBoolean
Flag to allow duplicate rows or not - 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.
Return Value
Type:
Booleantrue if succeeded, false otherwise
Implements
IDaoGetMultiAsDataTable(IEntityFields, DataTable, ISortExpression, IPredicate, IRelationCollection, Boolean, ITransaction)See Also