# Base Classes

All the base TypeScript classes in an ORM file that represent a table or view extend the base class [EntityBase](/orm/tables-and-views.md).  Similarly, all the base TypeScript classes that represent a stored procedure extend [ProcedureBase](/orm/stored-procedures.md). &#x20;

## Importing

These files can be imported from `wire-orm-base.ts`.

ORM structures can be imported individually from an ORM file.

```javascript
import { Categories } from "./northwind.orm.js";

const categories = await Categories.select().execAsync();
```

All structures in an ORM file can also be imported at one time using the `*` syntax.  In the example below, the `Northwind` variable acts as a namespace for all of the structures in the ORM file.  Any reference to a structure in the file will start with `Northwind`.

```typescript
import * as Northwind from "./northwind.orm.js";

const categories = await Northwind.Categories.select().execAsync();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wirebootstrap.com/orm/base-classes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
