Skip to content

PgTimeConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Converts full-range times, including 24:00, to and from PostgreSQL ISO strings on the active backend.

public sealed class PgTimeConverter : JsonConverter<PgTime>

Inheritance: object, JsonConverter, JsonConverter<PgTime>

public PgTimeConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”
public override PgTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgTime

Write(Utf8JsonWriter, PgTime, JsonSerializerOptions)

Section titled “Write(Utf8JsonWriter, PgTime, JsonSerializerOptions)”
public override void Write(Utf8JsonWriter writer, PgTime value, JsonSerializerOptions options)

Parameters:

writer — Utf8JsonWriter

value — PgTime

options — JsonSerializerOptions