Search Results for

    Show / Hide Table of Contents

    Class PgConverterResolver

    Inheritance
    object
    PgConverterResolver
    PgConverterResolver<T>
    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public abstract class PgConverterResolver

    Methods

    | Improve this Doc View Source

    CreateUnsupportedPgTypeIdException(PgTypeId)

    Declaration
    protected ArgumentOutOfRangeException CreateUnsupportedPgTypeIdException(PgTypeId pgTypeId)
    Parameters
    Type Name Description
    PgTypeId pgTypeId
    Returns
    Type Description
    ArgumentOutOfRangeException
    | Improve this Doc View Source

    Get(Field)

    Gets the appropriate converter to read with based on the given field info.

    Declaration
    public virtual PgConverterResolution Get(Field field)
    Parameters
    Type Name Description
    Field field
    Returns
    Type Description
    PgConverterResolution

    The converter resolution.

    Remarks

    Implementations should not return new instances of the possible converters that can be returned, instead its expected these are cached once used. Array or other collection converters depend on this to cache their own converter - which wraps the element converter - with the cache key being the element converter reference.

    | Improve this Doc View Source

    GetDefault(PgTypeId?)

    Gets the appropriate converter solely based on PgTypeId.

    Declaration
    public abstract PgConverterResolution GetDefault(PgTypeId? pgTypeId)
    Parameters
    Type Name Description
    PgTypeId? pgTypeId
    Returns
    Type Description
    PgConverterResolution

    The converter resolution.

    Remarks

    Implementations should not return new instances of the possible converters that can be returned, instead its expected these are cached once used. Array or other collection converters depend on this to cache their own converter - which wraps the element converter - with the cache key being the element converter reference.

    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team