---
url: /nestjs-odata/api/generated/interfaces/AnnotationContext.md
---
# Interface: AnnotationContext

Defined in: [response/odata-annotation.builder.ts:6](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L6)

Context needed to annotate an entity with OData metadata annotations.

## Properties

### entitySetName

> `readonly` **entitySetName**: `string`

Defined in: [response/odata-annotation.builder.ts:10](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L10)

The OData entity set name (e.g. 'Products')

***

### entityType

> `readonly` **entityType**: [`EdmEntityType`](EdmEntityType.md)

Defined in: [response/odata-annotation.builder.ts:12](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L12)

The EDM entity type descriptor

***

### namespace

> `readonly` **namespace**: `string`

Defined in: [response/odata-annotation.builder.ts:14](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L14)

The EDM namespace (e.g. 'Default')

***

### serviceRoot

> `readonly` **serviceRoot**: `string`

Defined in: [response/odata-annotation.builder.ts:8](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L8)

The OData service root path (e.g. '/odata')
