Skip to content

Commit

Permalink
Document array_remove translation
Browse files Browse the repository at this point in the history
See #3078
  • Loading branch information
roji committed Oct 26, 2024
1 parent 72c3804 commit 586ea15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions conceptual/EFCore.PG/mapping/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ array1.SequenceEqual(array2) | [array1 = array2](https://www.po
arrayNonColumn.Contains(element) | [element = ANY(arrayNonColumn)](https://www.postgresql.org/docs/current/static/functions-comparisons.html#AEN21104) | Can use regular index
arrayColumn.Contains(element) | [arrayColumn @> ARRAY\[element\]](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-OPERATORS-TABLE) | Can use GIN index
array.Append(element) | [array_append(array, element)](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-FUNCTIONS-TABLE) | Added in 6.0
array.Where(i => i != 8) | [array_remove(array, value)](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-FUNCTIONS-TABLE) | Added in 9.0
array1.Concat(array2) | [array1 \|\| array2](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-FUNCTIONS-TABLE) | Added in 6.0
array.IndexOf(element) | [array_position(array, element) - 1](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-FUNCTIONS-TABLE) | Added in 6.0
array.IndexOf(element, startIndex) | [array_position(array, element, startIndex + 1) - 1](https://www.postgresql.org/docs/current/functions-array.html#ARRAY-FUNCTIONS-TABLE) | Added in 6.0
Expand Down
4 changes: 3 additions & 1 deletion conceptual/EFCore.PG/release-notes/9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ Thanks to [@ChrisJollyAU](https://github.com/ChrisJollyAU) and [@Timovzl](https:

## Other new features

Version 9.0 contains other smaller features and bug fixes, [see the 9.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/61?closed=1) for the full list of Npgsql EF provider issues.
* Translate `array.Where(i => i != x)` to `array_remove(array, x)`

See the [9.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/61?closed=1) for the full list of Npgsql EF provider issues.

## Breaking changes

Expand Down

0 comments on commit 586ea15

Please sign in to comment.