Skip to content

PgDateConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Converts full-range dates to and from PostgreSQL ISO strings on the active backend.

public sealed class PgDateConverter : JsonConverter<PgDate>

Inheritance: object, JsonConverter, JsonConverter<PgDate>

public PgDateConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

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

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgDate

Write(Utf8JsonWriter, PgDate, JsonSerializerOptions)

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

Parameters:

writer — Utf8JsonWriter

value — PgDate

options — JsonSerializerOptions