Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
See Also
Programmer's Guide > OpenAccess ORM Classic (Old API) > Telerik OpenAccess ORM OQL Reference > OQL - Object Query Language > The Select Statement > Typecasting

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.

In this example we have used the object model Inheritance. In this case we have an abstract base class Pet, which is extended by the classes Cat, and Dog. The abstract class Dog is then extended by the classes wiener dog and rottweiler. Use the following query to find wiener dog whose length is greater than 56:

OQL Copy Code
SELECT * FROM DogExtent AS c WHERE ((WienerDog)c).Length > 56

See Also