Skip to content

WhereJsonPathEquals Method ​

Definition ​

  • Namespace: JASE.Database.Postgres
  • Assembly: JASE.Database.Postgres.dll

Overloads ​

NameDescription
QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, IReadOnlyList<string> path, string value)Filters rows where a jsonb path extracts to the given text value (-&gt;&gt; for one segment, #&gt;&gt; for nested paths).
QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string key, string value)Filters rows where a jsonb path extracts to the given text value (-&gt;&gt; for one segment, #&gt;&gt; for nested paths).

QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, IReadOnlyList<string> path, string value) ​

csharp
QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, IReadOnlyList<string> path, string value)

Filters rows where a jsonb path extracts to the given text value (-&gt;&gt; for one segment, #&gt;&gt; for nested paths).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
pathJSON path segments from the document root.
queryTyped query builder.
selectorJSON column selector.
valueExpected text value of the path.

QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string key, string value) ​

csharp
QueryBuilder<T> WhereJsonPathEquals(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string key, string value)

Filters rows where a jsonb path extracts to the given text value (-&gt;&gt; for one segment, #&gt;&gt; for nested paths).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
keyTop-level JSON object key.
queryTyped query builder.
selectorJSON column selector.
valueExpected text value of the path.