---
url: /nestjs-odata/api/generated/functions/ODataEntitySet.md
---
# Function: ODataEntitySet()

> **ODataEntitySet**(`name`): `ClassDecorator`

Defined in: [decorators/odata-entity-set.decorator.ts:10](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-entity-set.decorator.ts#L10)

@ODataEntitySet(name) — override the entity set name for an entity class.
Without this decorator, the adapter will auto-pluralize the class name.

Zero imports from typeorm, @nestjs/common, or any ORM. Pure reflect-metadata.

## Parameters

### name

`string`

## Returns

`ClassDecorator`
