@@ -204,27 +204,27 @@ The following expression types and functions are translated:
204
204
.NET | SQL
205
205
--------------------------------------------------------------------------------------- | ----
206
206
customer.Name | [ customer->>'Name'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
207
- customer.Orders[ 1] .Price | [ customer#>>'{Orders,0,Price}'[ 1 ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
207
+ customer.Orders[ 1] .Price | [ customer#>>'{Orders,0,Price}'\[ 1 \ ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
208
208
customer.Orders.Length (or Count) | [ jsonb_array_length(customer->'Orders')] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
209
209
EF.Functions.JsonContains(customer, @"{""Name"": ""Joe"", ""Age"": 25}")<sup >1</sup > | [ customer @> '{"Name": "Joe", "Age": 25}'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
210
210
EF.Functions.JsonContained(@"{""Name"": ""Joe"", ""Age"": 25}", e.Customer)<sup >1</sup > | [ '{"Name": "Joe", "Age": 25}' <@ customer] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
211
211
EF.Functions.JsonExists(e.Customer, "Age") | [ customer ? 'Age'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
212
- EF.Functions.JsonExistsAny(e.Customer, "Age", "Address") | [ customer ?\| ARRAY[ 'Age','Address']] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
213
- EF.Functions.JsonExistsAll(e.Customer, "Age", "Address") | [ customer ?& ARRAY[ 'Age','Address']] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
212
+ EF.Functions.JsonExistsAny(e.Customer, "Age", "Address") | [ customer ?\| ARRAY\ [ 'Age','Address'\ ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
213
+ EF.Functions.JsonExistsAll(e.Customer, "Age", "Address") | [ customer ?& ARRAY\ [ 'Age','Address'\ ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
214
214
EF.Functions.JsonTypeof(e.Customer.Age) | [ jsonb_typeof(customer->'Age')] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
215
215
216
216
### [ JsonDocument Mapping] ( #tab/jsondocument )
217
217
218
218
.NET | SQL
219
219
------------------------------------------------------------------------------------- | ----
220
220
customer.RootElement.GetProperty("Name").GetString() | [ customer->>'Name' = 'Joe'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
221
- customer.RootElement.GetProperty("Orders")[ 1] .GetProperty("Price").GetInt32() | [ customer#>>'{Orders,0,Price}'[ 1 ] = 8] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
221
+ customer.RootElement.GetProperty("Orders")[ 1] .GetProperty("Price").GetInt32() | [ customer#>>'{Orders,0,Price}'\[ 1 \ ] = 8] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-OP-TABLE )
222
222
customer.RootElement.GetProperty("Orders").GetArrayLength() | [ jsonb_array_length(customer->'Orders'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
223
223
EF.Functions.JsonContains(customer, @"{""Name"": ""Joe"", ""Age"": 25}")<sup >1</sup > | [ customer @> '{"Name": "Joe", "Age": 25}'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
224
224
EF.Functions.JsonContained(@"{""Name"": ""Joe"", ""Age"": 25}", customer)<sup >1</sup > | [ '{"Name": "Joe", "Age": 25}' <@ customer] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
225
225
EF.Functions.JsonExists(customer, "Age") | [ customer ? 'Age'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
226
- EF.Functions.JsonExistsAny(customer, "Age", "Address") | [ customer ?\| ARRAY[ 'Age','Address']] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
227
- EF.Functions.JsonExistsAll(customer, "Age", "Address") | [ customer ?& ARRAY[ 'Age','Address']] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
226
+ EF.Functions.JsonExistsAny(customer, "Age", "Address") | [ customer ?\| ARRAY\ [ 'Age','Address'\ ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
227
+ EF.Functions.JsonExistsAll(customer, "Age", "Address") | [ customer ?& ARRAY\ [ 'Age','Address'\ ]] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSONB-OP-TABLE )
228
228
EF.Functions.JsonTypeof(customer.GetProperty("Age")) == "number" | [ jsonb_typeof(customer->'Age') = 'number'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
229
229
230
230
***
0 commit comments