# Stored Procedures

## Procedure Base

All the base TypeScript classes in an ORM file that represent a stored procedure extend the base class `ProcedureBase`.  This base class is located in the `wire-orm-base.ts` file.

```javascript
import { ProcedureBase } from "./wire-orm-base.ts";

class CustOrderHist extends ProcedureBase {
  ...
}
```

## Parameters

All the parameters in an entity are created by name in an `enum` structure.   The naming convention for the parameters`enum` is *\[procedure]Param*.

```javascript
enum CustOrderHistParam {
  CustomerID = "CustomerID"
}
```


---

# 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/stored-procedures.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.
