Show / Hide Table of Contents

Class JsonbHandlerFactory

A factory for type handlers for the PostgreSQL jsonb data type.

Inheritance
System.Object
NpgsqlTypeHandlerFactory
NpgsqlTypeHandlerFactory<System.String>
JsonbHandlerFactory
Inherited Members
NpgsqlTypeHandlerFactory<String>.CreateNonGeneric(PostgresType, NpgsqlConnection)
NpgsqlTypeHandlerFactory<String>.DefaultValueType
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Npgsql.TypeHandlers
Assembly: Npgsql.dll
Syntax
public class JsonbHandlerFactory : NpgsqlTypeHandlerFactory<string>
Remarks

See https://www.postgresql.org/docs/current/datatype-json.html.

The type handler API allows customizing Npgsql's behavior in powerful ways. However, although it is public, it should be considered somewhat unstable, and may change in breaking ways, including in non-major releases. Use it at your own risk.

Constructors

JsonbHandlerFactory()

Declaration
public JsonbHandlerFactory()

JsonbHandlerFactory(JsonSerializerOptions)

Declaration
public JsonbHandlerFactory(JsonSerializerOptions serializerOptions)
Parameters
Type Name Description
JsonSerializerOptions serializerOptions

Methods

Create(PostgresType, NpgsqlConnection)

Creates a type handler.

Declaration
public override NpgsqlTypeHandler<string> Create(PostgresType postgresType, NpgsqlConnection conn)
Parameters
Type Name Description
PostgresType postgresType
NpgsqlConnection conn
Returns
Type Description
NpgsqlTypeHandler<System.String>
Overrides
Npgsql.TypeHandling.NpgsqlTypeHandlerFactory<System.String>.Create(Npgsql.PostgresTypes.PostgresType, Npgsql.NpgsqlConnection)
In This Article
Back to top Generated by DocFX