Class PgConverterResolver
Namespace: Npgsql.Internal
Assembly: Npgsql.dll
Syntax
public abstract class PgConverterResolver
Methods
| Improve this Doc View SourceCreateUnsupportedPgTypeIdException(PgTypeId)
Declaration
protected ArgumentOutOfRangeException CreateUnsupportedPgTypeIdException(PgTypeId pgTypeId)
Parameters
Type | Name | Description |
---|---|---|
PgTypeId | pgTypeId |
Returns
Type | Description |
---|---|
ArgumentOutOfRangeException |
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.
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.