Skip to content

WhereJsonContains Method ​

Definition ​

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

Overloads ​

NameDescription
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string json)Filters rows where the jsonb column contains the given JSON document (@&gt;).
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonDocument json)Filters rows where the jsonb column contains the given JSON document (@&gt;).
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonElement json)Filters rows where the jsonb column contains the given JSON document (@&gt;).

QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string json) ​

csharp
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string json)

Filters rows where the jsonb column contains the given JSON document (@&gt;).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
jsonJSON document as text (bound as jsonb).
queryTyped query builder.
selectorJSON column selector.

QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonDocument json) ​

csharp
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonDocument json)

Filters rows where the jsonb column contains the given JSON document (@&gt;).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
jsonJSON document (bound as jsonb).
queryTyped query builder.
selectorJSON column selector.

QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonElement json) ​

csharp
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonElement json)

Filters rows where the jsonb column contains the given JSON document (@&gt;).

Type parameters ​

NameDescription
TEntity type.
TPropJSON property CLR type.

Parameters ​

NameDescription
jsonJSON document element (bound as jsonb).
queryTyped query builder.
selectorJSON column selector.