Fetches the fields passed in fieldCollectionToFetch from the persistent storage using the relations and filter information stored in the passed in typed list. For TypedView filling, use the method FetchTypedView().

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public virtual void FetchTypedList(
	ITypedListLgp2 typedListToFill,
	IPredicateExpression additionalFilter,
	int maxNumberOfItemsToReturn,
	ISortExpression sortClauses,
	bool allowDuplicates
)
Visual Basic
Public Overridable Sub FetchTypedList ( 
	typedListToFill As ITypedListLgp2,
	additionalFilter As IPredicateExpression,
	maxNumberOfItemsToReturn As Integer,
	sortClauses As ISortExpression,
	allowDuplicates As Boolean
)
Visual C++
public:
virtual void FetchTypedList(
	ITypedListLgp2^ typedListToFill, 
	IPredicateExpression^ additionalFilter, 
	int maxNumberOfItemsToReturn, 
	ISortExpression^ sortClauses, 
	bool allowDuplicates
)
F#
abstract FetchTypedList : 
        typedListToFill : ITypedListLgp2 * 
        additionalFilter : IPredicateExpression * 
        maxNumberOfItemsToReturn : int * 
        sortClauses : ISortExpression * 
        allowDuplicates : bool -> unit 
override FetchTypedList : 
        typedListToFill : ITypedListLgp2 * 
        additionalFilter : IPredicateExpression * 
        maxNumberOfItemsToReturn : int * 
        sortClauses : ISortExpression * 
        allowDuplicates : bool -> unit 

Parameters

typedListToFill
Type: ITypedListLgp2
Typed list to fill.
additionalFilter
Type: IPredicateExpression
An additional filter to use to filter the fetch of the typed list. If you need a more sophisticated filter approach, please use the overload which accepts an IRelationalPredicateBucket and add your filter to the bucket you receive when calling typedListToFill.GetRelationInfo().
maxNumberOfItemsToReturn
Type: System..::..Int32
The maximum amount of rows to return. If 0, all rows matching the filter are returned
sortClauses
Type: ISortExpression
SortClause expression which is applied to the query executed, sorting the fetch result.
allowDuplicates
Type: System..::..Boolean
When true, it will not filter out duplicate rows, otherwise it will DISTINCT duplicate rows.

Implements

IRepository..::..FetchTypedList(ITypedListLgp2, IPredicateExpression, Int32, ISortExpression, Boolean)

Remarks

Grabs the fields list and relations set from the typed list passed in.

See Also