Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conceptual/EFCore.PG/mapping/translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ collection.Contains(item) | item IN collection
enumValue.HasFlag(flag) | enumValue & flag = flag
Guid.CreateVersion7() | [uuidv7()](https://www.postgresql.org/docs/current/functions-uuid.html) (added in 10 when targeting PG18, client-evaluated otherwise)
Guid.NewGuid() | [gen_random_uuid()](https://www.postgresql.org/docs/current/functions-uuid.html), or [uuid_generate_v4()](https://www.postgresql.org/docs/current/uuid-ossp.html) from [`uuid-ossp`](https://www.postgresql.org/docs/current/uuid-ossp.html) when targeting pre-PG13
EF.Functions.JsonPathExists(json, path) | [JSON_EXISTS(json, path)](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-CHECK) (added in 11)
nullable.GetValueOrDefault() | coalesce(nullable, 0)
nullable.GetValueOrDefault(defaultValue) | coalesce(nullable, defaultValue)

Expand Down
1 change: 1 addition & 0 deletions conceptual/EFCore.PG/release-notes/11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ For more details, see the [temporal constraints documentation](../misc/temporal-

## Other new features

* Added support for the new EF Core `EF.Functions.JsonPathExists()` function, which translates to [SQL/JSON `JSON_EXISTS`](https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-SQLJSON-CHECK). This works on scalar string columns as well as on complex and owned JSON properties.
* Added `EF.Functions.IntersectsBbox(geom1, geom2)` for expressing [the PostGIS `&&` operator](https://postgis.net/docs/geometry_overlaps.html). Thanks to [@bjornharrtell](https://github.com/bjornharrtell) for this contribution!
Loading