Appearance
WhereJsonContains Method
Definition
- Namespace:
JASE.Database.Postgres - Assembly:
JASE.Database.Postgres.dll
Overloads
| Name | Description |
|---|---|
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, string json) | Filters rows where the jsonb column contains the given JSON document (@>). |
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonDocument json) | Filters rows where the jsonb column contains the given JSON document (@>). |
QueryBuilder<T> WhereJsonContains(QueryBuilder<T> query, Expression<Func<T, TProp>> selector, JsonElement json) | Filters rows where the jsonb column contains the given JSON document (@>). |
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 (@>).
Type parameters
| Name | Description |
|---|---|
T | Entity type. |
TProp | JSON property CLR type. |
Parameters
| Name | Description |
|---|---|
json | JSON document as text (bound as jsonb). |
query | Typed query builder. |
selector | JSON 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 (@>).
Type parameters
| Name | Description |
|---|---|
T | Entity type. |
TProp | JSON property CLR type. |
Parameters
| Name | Description |
|---|---|
json | JSON document (bound as jsonb). |
query | Typed query builder. |
selector | JSON 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 (@>).
Type parameters
| Name | Description |
|---|---|
T | Entity type. |
TProp | JSON property CLR type. |
Parameters
| Name | Description |
|---|---|
json | JSON document element (bound as jsonb). |
query | Typed query builder. |
selector | JSON column selector. |