Skip to content

WhereJsonHasKey Method ​

Definition ​

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

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

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

Filters rows where the jsonb column has the given top-level key (?).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
keyTop-level JSON object key.
queryTyped query builder.
selectorJSON column selector.