Click or drag to resize

IDaoGetMultiAsDataTable 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.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
bool GetMultiAsDataTable(
	IEntityFields fieldsToReturn,
	DataTable tableToFill,
	ISortExpression sortClauses,
	IPredicate selectFilter,
	IRelationCollection relations,
	bool allowDuplicates,
	ITransaction transactionToUse
)

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: Boolean
true if succeeded, false otherwise
See Also