# toDataSet

Use the `toDataSet` 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 query to participate in the [dynamic bindings of UI components](https://docs.wirebootstrap.com/wirebootstrap/key-concepts#dataset).

```javascript
const dataset = Categories.select(CategoriesField.CategoryName).toDataSet();

new wire.datatables().render("#table", {data: dataset});
```
