TechTalk Genome v4.2

PredictiveCacheManager.PrecacheWithView Method 

Directs the predictive cache to preload the specified set of properties of a projection for a Set along with other elements of the Set.

public static Set PrecacheWithView(
   Set s,
   string projection,
   string[] viewNames,
   params object[] parameters
);

Parameters

s
The source Set.
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 Set using the this keyword. The expression must return a scalar or persistent object.
viewNames
A string array containing view names declaring which properties have to be retrieved.
parameters
An array of zero or more objects that can be used as literal argument values in projection.

Return Value

A Set containing the same elements as s. The resulting Set will contain a hint that instructs the predictive cache framework to retrieve specific properties of [projection]s from the DataDomain whenever the resulting Set is enumerated.

Remarks

The requested set of properties is specified as the union of the views named in viewNames.

Requirements

Namespace: TechTalk.Genome

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

Version: 4.2.4.4

Editions: Professional, Evaluation

See Also

PredictiveCacheManager Class | TechTalk.Genome Namespace