Search Results for

    Show / Hide Table of Contents

    Class PgConverterResolver<T>

    Inheritance
    object
    PgConverterResolver
    PgConverterResolver<T>
    Inherited Members
    PgConverterResolver.GetDefault(PgTypeId?)
    PgConverterResolver.Get(Field)
    PgConverterResolver.CreateUnsupportedPgTypeIdException(PgTypeId)
    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public abstract class PgConverterResolver<T> : PgConverterResolver
    Type Parameters
    Name Description
    T

    Methods

    | Improve this Doc View Source

    Get(T?, PgTypeId?)

    Gets the appropriate converter to write with based on the given value.

    Declaration
    public abstract PgConverterResolution? Get(T? value, PgTypeId? expectedPgTypeId)
    Parameters
    Type Name Description
    T value
    PgTypeId? expectedPgTypeId
    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