Search Results for

    Show / Hide Table of Contents

    Class IntervalConverter

    Inheritance
    object
    PgConverter
    PgConverter<Interval>
    PgStreamingConverter<Interval>
    IntervalConverter
    Inherited Members
    PgStreamingConverter<Interval>.CanConvert(DataFormat, out BufferRequirements)
    PgConverter<Interval>.IsDbNullValue(Interval, ref object?)
    PgConverter<Interval>.IsDbNull(Interval, ref object?)
    PgConverter.IsDbNullable
    PgConverter.CanConvertBufferedDefault(DataFormat, out BufferRequirements)
    Namespace: Npgsql.NodaTime.Internal
    Assembly: Npgsql.NodaTime.dll
    Syntax
    public class IntervalConverter : PgStreamingConverter<Interval>

    Constructors

    | Improve this Doc View Source

    IntervalConverter(PgConverter<NpgsqlRange<Instant>>)

    Declaration
    public IntervalConverter(PgConverter<NpgsqlRange<Instant>> rangeConverter)
    Parameters
    Type Name Description
    PgConverter<NpgsqlRange<Instant>> rangeConverter

    Methods

    | Improve this Doc View Source

    GetSize(SizeContext, Interval, ref object?)

    Declaration
    public override Size GetSize(SizeContext context, Interval value, ref object? writeState)
    Parameters
    Type Name Description
    SizeContext context
    Interval value
    object? writeState
    Returns
    Type Description
    Size
    | Improve this Doc View Source

    Read(PgReader)

    Declaration
    public override Interval Read(PgReader reader)
    Parameters
    Type Name Description
    PgReader reader
    Returns
    Type Description
    Interval
    Overrides
    Npgsql.Internal.PgConverter<Interval>.Read(Npgsql.Internal.PgReader)
    | Improve this Doc View Source

    ReadAsync(PgReader, CancellationToken)

    Declaration
    public override ValueTask<Interval> ReadAsync(PgReader reader, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    PgReader reader
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<><Interval>
    | Improve this Doc View Source

    Write(PgWriter, Interval)

    Declaration
    public override void Write(PgWriter writer, Interval value)
    Parameters
    Type Name Description
    PgWriter writer
    Interval value
    Overrides
    Npgsql.Internal.PgConverter<Interval>.Write(Npgsql.Internal.PgWriter, Interval)
    | Improve this Doc View Source

    WriteAsync(PgWriter, Interval, CancellationToken)

    Declaration
    public override ValueTask WriteAsync(PgWriter writer, Interval value, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    PgWriter writer
    Interval value
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team