@@ -204,27 +204,27 @@ The following expression types and functions are translated:
204204.NET | SQL
205205--------------------------------------------------------------------------------------- | ----
206206customer.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 )
208208customer.Orders.Length (or Count) | [ jsonb_array_length(customer->'Orders')] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
209209EF.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 )
210210EF.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 )
211211EF.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 )
214214EF.Functions.JsonTypeof(e.Customer.Age) | [ jsonb_typeof(customer->'Age')] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
215215
216216### [ JsonDocument Mapping] ( #tab/jsondocument )
217217
218218.NET | SQL
219219------------------------------------------------------------------------------------- | ----
220220customer.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 )
222222customer.RootElement.GetProperty("Orders").GetArrayLength() | [ jsonb_array_length(customer->'Orders'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
223223EF.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 )
224224EF.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 )
225225EF.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 )
228228EF.Functions.JsonTypeof(customer.GetProperty("Age")) == "number" | [ jsonb_typeof(customer->'Age') = 'number'] ( https://www.postgresql.org/docs/current/functions-json.html#FUNCTIONS-JSON-PROCESSING-TABLE )
229229
230230***
0 commit comments