Table of Contents

Interface IPgTypeInfoResolver

Namespace
Npgsql.Internal
Assembly
Npgsql.dll

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

public interface IPgTypeInfoResolver

Methods

GetTypeInfo(Type?, DataTypeName?, PgSerializerOptions)

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

PgTypeInfo? GetTypeInfo(Type? type, DataTypeName? dataTypeName, PgSerializerOptions options)

Parameters

type Type

The clr type being requested.

dataTypeName DataTypeName?

The postgres type being requested.

options PgSerializerOptions

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

Returns

PgTypeInfo

A result, or null if there was no match.