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

> **ODataETag**(): `PropertyDecorator`

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

Marks a property as the ETag source for concurrency control.
Per D-03: opt-in per entity. Only entities with

## Returns

`PropertyDecorator`

## OData ETag

or

## Update Date Column

get ETags.

Usage:
class Product {
@ODataETag()
version: number
}
