Class NpgsqlJsonNetExtensions
Extension allowing adding the Json.NET plugin to an Npgsql type mapper.
Inheritance
object
NpgsqlJsonNetExtensions
Namespace: Npgsql
Assembly: Npgsql.Json.NET.dll
Syntax
public static class NpgsqlJsonNetExtensions
Methods
| Improve this Doc View SourceUseJsonNet(INpgsqlTypeMapper, JsonSerializerSettings?, Type[]?, Type[]?)
Sets up JSON.NET mappings for the PostgreSQL json and jsonb types.
Declaration
public static INpgsqlTypeMapper UseJsonNet(this INpgsqlTypeMapper mapper, JsonSerializerSettings? settings = null, Type[]? jsonbClrTypes = null, Type[]? jsonClrTypes = null)
Parameters
Type | Name | Description |
---|---|---|
INpgsqlTypeMapper | mapper | The type mapper to set up. |
JsonSerializerSettings? | settings | Optional settings to customize JSON serialization. |
Type[] | jsonbClrTypes | A list of CLR types to map to PostgreSQL |
Type[] | jsonClrTypes | A list of CLR types to map to PostgreSQL |
Returns
Type | Description |
---|---|
INpgsqlTypeMapper |