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 SourceGetTypeInfo(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. |