Search Results for

    Show / Hide Table of Contents

    Interface IPgTypeInfoResolver

    An Npgsql resolver for type info. Used by Npgsql to read and write values to PostgreSQL.

    Namespace: Npgsql.Internal
    Assembly: Npgsql.dll
    Syntax
    public interface IPgTypeInfoResolver

    Methods

    | Improve this Doc View Source

    GetTypeInfo(Type?, DataTypeName?, PgSerializerOptions)

    Resolve a type info for a given type and data type name, at least one value will be non-null.

    Declaration
    PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)
    Parameters
    Type Name Description
    Type? type

    The clr type being requested.

    DataTypeName? dataTypeName

    The postgres type being requested.

    PgSerializerOptions options

    Used for configuration state and Npgsql type info or PostgreSQL type catalog lookups.

    Returns
    Type Description
    PgTypeInfo

    A result, or null if there was no match.

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