TechTalk Genome v4.2

PredictiveCacheManager.Precache<T> Method (Collection<T>, String, Object[])

Directs the predictive cache to preload a projection of a Collection<T> along with other elements of the Collection<T>.

public static Collection<T> Precache<T>(
   Collection<T> collection,
   string projection,
   params object[] parameters
);

Parameters

collection
projection
An OQL expression that is evaluated for each element of s. The expression may contain zero or more literal parameter references and it can refer to the candidate element of the source Collection<T> using the this keyword. The expression must return a scalar or persistent object.
parameters
An array of zero or more objects that can be used as literal argument values in orderBy.

Return Value

A Collection<T> containing the same elements as s. The resulting Collection<T> will contain a hint that instructs the predictive cache framework to retrieve [projection]s from the DataDomain whenever the resulting Collection<T> is enumerated.

Remarks

Requirements

Namespace: TechTalk.Genome

Assembly: TechTalk.Genome (in TechTalk.Genome.dll)

Version: 4.2.4.4

Editions: Professional, Evaluation, Express

See Also

PredictiveCacheManager Class | TechTalk.Genome Namespace | PredictiveCacheManager.Precache<T> Overload List