Optimize the fetch collection process.
Namespace: MonoSoftware.MonoX.RepositoriesAssembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)
Syntax
C# |
---|
public virtual void OptimizeFetchCollection(
IEntityCollection2 collection,
IRelationPredicateBucket bucket,
int maxNumberOfItemsToReturn,
ISortExpression sortExpression,
IPrefetchPath2 prefetchPath,
int pageNumber,
int pageSize,
out int recordCount
) |
Visual Basic |
---|
Public Overridable Sub OptimizeFetchCollection (
collection As IEntityCollection2,
bucket As IRelationPredicateBucket,
maxNumberOfItemsToReturn As Integer,
sortExpression As ISortExpression,
prefetchPath As IPrefetchPath2,
pageNumber As Integer,
pageSize As Integer,
<OutAttribute> ByRef recordCount As Integer
) |
Visual C++ |
---|
public:
virtual void OptimizeFetchCollection(
IEntityCollection2^ collection,
IRelationPredicateBucket^ bucket,
int maxNumberOfItemsToReturn,
ISortExpression^ sortExpression,
IPrefetchPath2^ prefetchPath,
int pageNumber,
int pageSize,
[OutAttribute] int% recordCount
) |
F# |
---|
abstract OptimizeFetchCollection :
collection : IEntityCollection2 *
bucket : IRelationPredicateBucket *
maxNumberOfItemsToReturn : int *
sortExpression : ISortExpression *
prefetchPath : IPrefetchPath2 *
pageNumber : int *
pageSize : int *
recordCount : int byref -> unit
override OptimizeFetchCollection :
collection : IEntityCollection2 *
bucket : IRelationPredicateBucket *
maxNumberOfItemsToReturn : int *
sortExpression : ISortExpression *
prefetchPath : IPrefetchPath2 *
pageNumber : int *
pageSize : int *
recordCount : int byref -> unit |
Parameters
- collection
- Type: IEntityCollection2
Collection.
- bucket
- Type: IRelationPredicateBucket
Filter information for retrieving the entities.
- maxNumberOfItemsToReturn
- Type: System..::..Int32
The maximum amount of entities to return. If 0, all entities are returned.
- sortExpression
- Type: ISortExpression
SortClause expression which is applied to the query executed, sorting the
fetch result.
- prefetchPath
- Type: IPrefetchPath2
The prefetch path to use for this fetch, which will fetch all related entities.
- pageNumber
- Type: System..::..Int32
Page number.
- pageSize
- Type: System..::..Int32
Page size.
- recordCount
- Type: System..::..Int32%
Total record count.
Implements
IGenericRepository..::..OptimizeFetchCollection(IEntityCollection2, IRelationPredicateBucket, Int32, ISortExpression, IPrefetchPath2, Int32, Int32, Int32%)See Also