> For the complete documentation index, see [llms.txt](https://docs.wirebootstrap.com/orm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wirebootstrap.com/orm/stored-procedures/todataset.md).

# toDataSet

Use the `toProcedure` method to transform an entity ORM object into a [WireBootstrap DataSet](https://docs.wirebootstrap.com/wirebootstrap/reference/wire.data/wire.data.dataset) object.  This method transform allows an ORM procedure to participate in the [dynamic bindings of UI components](https://docs.wirebootstrap.com/wirebootstrap/key-concepts#dataset).

```javascript
const dataset = CustOrderHist.procedure().toDatSet();
    
new wire.datatables().render("#table", {data: dataset});
```
