Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
Setting the Prefetch Size
See Also
Programmer's Guide > OpenAccess ORM Classic (Old API) > Telerik OpenAccess ORM OQL Reference > OQL - Object Query Language > Setting the Prefetch Size

Glossary Item Box

This documentation article is a legacy resource describing the functionality of the deprecated OpenAccess Classic only. The contemporary documentation of Telerik OpenAccess ORM is available here.

The number of instances fetched per server round trip can be set. Use the IQuery.Prefetch property to minimize the number of client server calls.

IQuery.Prefetch(int) must be called before the query is compiled or executed.

This property controls the Telerik OpenAccess ORM batching and is also passed through to the database driver. If this property is not set, the value of MaxResultCount, if set, is used as the default.           

See Also