Search Results for

    Show / Hide Table of Contents

    Class PgConverter<T>

    Inheritance
    object
    PgConverter
    PgConverter<T>
    PgBufferedConverter<T>
    PgStreamingConverter<T>
    Inherited Members
    PgConverter.IsDbNullable
    PgConverter.CanConvert(DataFormat, out BufferRequirements)
    PgConverter.CanConvertBufferedDefault(DataFormat, out BufferRequirements)
    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public abstract class PgConverter<T> : PgConverter
    Type Parameters
    Name Description
    T

    Methods

    | Improve this Doc View Source

    GetSize(SizeContext, T, ref object?)

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

    IsDbNull(T?, ref object?)

    Declaration
    public bool IsDbNull(T? value, ref object? writeState)
    Parameters
    Type Name Description
    T value
    object? writeState
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    IsDbNullValue(T?, ref object?)

    Declaration
    protected virtual bool IsDbNullValue(T? value, ref object? writeState)
    Parameters
    Type Name Description
    T value
    object? writeState
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    Read(PgReader)

    Declaration
    public abstract T Read(PgReader reader)
    Parameters
    Type Name Description
    PgReader reader
    Returns
    Type Description
    T
    | Improve this Doc View Source

    ReadAsync(PgReader, CancellationToken)

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

    Write(PgWriter, T)

    Declaration
    public abstract void Write(PgWriter writer, T value)
    Parameters
    Type Name Description
    PgWriter writer
    T value
    | Improve this Doc View Source

    WriteAsync(PgWriter, T, CancellationToken)

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