AutoMapper / AutoMapper.Extensions.OData

Creates LINQ expressions from ODataQueryOptions and executes the query.
MIT License
140 stars 38 forks source link

Add support for the "$this" literal #169

Closed wbuck closed 1 year ago

wbuck commented 1 year ago

The $this literal can be used to refer to the current instance of a primitive or navigation collection.

For example:

$select=SomeIntegerCollection($filter=$this gt 10))

Where $this refers to the current int element in the collection. This can be useful for DB's that support collections of primitive types.