Class NpgsqlTypeHandlerFactory<TDefault>
- Namespace
- Npgsql.TypeHandling
- Assembly
- Npgsql.dll
Base class for all type handler factories, which construct type handlers that know how to read and write CLR types from/to PostgreSQL types. Type handler factories are set up via NpgsqlTypeMapping in either the global or connection-specific type mapper.
public abstract class NpgsqlTypeHandlerFactory<TDefault> : NpgsqlTypeHandlerFactory
Type Parameters
TDefault
The default CLR type that handlers produced by this factory will read and write.
- Inheritance
-
NpgsqlTypeHandlerFactory<TDefault>
- Derived
- Inherited Members
Constructors
NpgsqlTypeHandlerFactory()
protected NpgsqlTypeHandlerFactory()
Methods
Create(NpgsqlConnection)
Creates a type handler. The provided connection can be examined to modify type handler behavior based on server settings, etc.
protected abstract NpgsqlTypeHandler<TDefault> Create(NpgsqlConnection conn)
Parameters
conn
NpgsqlConnection
Returns
- NpgsqlTypeHandler<TDefault>